You are here

function elysia_cron_menu in Elysia Cron 7.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.2 elysia_cron.module \elysia_cron_menu()
  4. 6 elysia_cron.module \elysia_cron_menu()
  5. 7 elysia_cron.module \elysia_cron_menu()

Implements hook_menu().

File

./elysia_cron.module, line 15

Code

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