in <modulename>.module.php i write this code:
Code: Select all
function GetNotificationOutput($priority = 3)
{
$gCms = cmsms();
$db = $gCms->GetDb();
$results = $db->GetOne('select count(*) from '.cms_db_prefix().'module_<modulename>_calendar where date = '.mktime(0, 0, 0, date("m") , date("d"), date("Y")));
if ($results > 0)
{
$obj = new StdClass;
$obj->priority = 2;
$obj->html = '<some text>'
}
return $obj;
}

Version of CMSMS:1.11.4 “Fernandina”
P.S.: Sorry for my English(If it so bad)

P.P.S: This module done nothing, I am newbie in developing modules for CMSMS. It is only for education.