You are here

function elysia_cron_menu_alter in Elysia Cron 7.2

Implements hook_menu_alter().

File

./elysia_cron.module, line 65

Code

function elysia_cron_menu_alter(&$items) {

  // Override default cron page.
  $items['admin/config/system/cron']['title'] = 'Cron Settings';
  $items['admin/config/system/cron']['description'] = 'View and manage cron table';
  $items['admin/config/system/cron']['page callback'] = 'elysia_cron_admin_page';
  $items['admin/config/system/cron']['access callback'] = 'elysia_cron_access';
  $items['admin/config/system/cron']['access arguments'] = array(
    'view elysia_cron',
  );
  $items['admin/config/system/cron']['file'] = NULL;
  $items['admin/reports/status/run-cron']['page callback'] = 'elysia_cron_run_manually';
  $items['admin/reports/status/run-cron']['file'] = NULL;
}