You are here

public function UltimateCronJob::getModuleName in Ultimate Cron 7.2

Get module name for this job.

File

./ultimate_cron.job.inc, line 584
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function getModuleName() {
  static $names = array();
  if (!isset($names[$this->hook['module']])) {
    $info = system_get_info('module', $this->hook['module']);
    $names[$this->hook['module']] = $info && !empty($info['name']) ? $info['name'] : $this->hook['module'];
  }
  return $names[$this->hook['module']];
}