function ultimate_cron_module_name in Ultimate Cron 7
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_module_name()
- 6 ultimate_cron.module \ultimate_cron_module_name()
Get module name
Parameters
$module:
Return value
string Name of module
2 calls to ultimate_cron_module_name()
- ultimate_cron_view_page in ./
ultimate_cron.admin.inc - Page overviewing cron jobs.
- _ultimate_cron_incompatible_modules in ./
ultimate_cron.module - Return a list of modules that are incompatible with Ultimate Cron
File
- ./
ultimate_cron.module, line 1312 - @todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…
Code
function ultimate_cron_module_name($module) {
$file = drupal_get_path('module', $module) . '/' . $module . '.info';
$info = drupal_parse_info_file($file);
return $info['name'] ? $info['name'] : $module;
}