/**
* jrImage_init
*/
function jrImage_init()
{
jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrImage', 'cached image count', 'jrImage_dashboard_panels');
return true;
}
/**
* Dashboard Panels
* @param $panel
* @return bool|int
*/
function jrImage_dashboard_panels($panel)
{
global $_conf;
// The panel being asked for will come in as $panel
$out = false;
switch ($panel) {
case 'cached image count':
// .......
$out = array(
'title' => intval($out)
);
break;
}
return ($out) ? $out : false;
}
// We provide some dashboard panels
jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrImage', 'image cache size', 'jrImage_dashboard_panels');
jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrImage', 'cached image count', 'jrImage_dashboard_panels');