You are here

function civicrm_cron_menu in CiviCRM Cron 7.2

Same name and namespace in other branches
  1. 6 civicrm_cron.module \civicrm_cron_menu()
  2. 7 civicrm_cron.module \civicrm_cron_menu()

Implementation of hook_menu().

File

./civicrm_cron.module, line 10
CiviCRM Cron Module

Code

function civicrm_cron_menu() {
  $items = array();
  $items['admin/config/civicrm/civicrm-cron'] = array(
    'title' => 'CiviCRM Cron Configuration',
    'description' => 'Settings to call CiviCRM\'s cron from Drupal\'s cron.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'civicrm_cron_admin_settings',
    ),
    'access arguments' => array(
      'administer CiviCRM',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['civicrm-cron/passthrough'] = array(
    'title' => 'CiviCRM Cron Passthrough',
    'description' => 'Runs CiviCRM\'s cron within Drupal passing the site key as CiviCRM expects',
    'page callback' => 'civicrm_cron_passthrough',
    'access arguments' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}