You are here

function elysia_cron_menu in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_menu()
  2. 5 elysia_cron.module \elysia_cron_menu()
  3. 6 elysia_cron.module \elysia_cron_menu()
  4. 7.2 elysia_cron.module \elysia_cron_menu()
  5. 7 elysia_cron.module \elysia_cron_menu()

File

./elysia_cron.module, line 53

Code

function elysia_cron_menu($_dcr_maycache = true) {
  $items = array();
  $items['admin/config/system/cron'] = array(
    'title' => _dcf_t('Cron Settings'),
    'description' => _dcf_t('View and manage cron table'),
    'page callback' => 'elysia_cron_admin_page',
    'access arguments' => array(
      'administer elysia_cron',
    ),
  );
  $items['admin/config/system/cron/status'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => _dcf_t('Status'),
    'weight' => 1,
  );
  $items['admin/config/system/cron/settings'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => _dcf_t('Settings'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'elysia_cron_settings_form',
    ),
    'access arguments' => array(
      'administer elysia_cron',
    ),
    'weight' => 2,
  );
  $items['admin/config/system/cron/maintenance'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => _dcf_t('Maintenance'),
    'page callback' => 'elysia_cron_maintenance_page',
    'access arguments' => array(
      'administer elysia_cron',
    ),
    'weight' => 3,
  );
  $items['admin/config/system/cron/execute'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'elysia_cron_execute_page',
    'access arguments' => array(
      'administer elysia_cron',
    ),
  );
  $items['admin/build/cron/ping'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'elysia_cron_ping_page',
    'access callback' => TRUE,
  );
  return _dcf_hook_menu($items, $_dcr_maycache);
}