You are here

function background_process_menu in Background Process 7.2

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

Implements hook_menu().

File

./background_process.module, line 46

Code

function background_process_menu() {
  $items = array();
  $items['bgp-start/%'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Run background process',
    'description' => 'Run background process',
    'page callback' => 'background_process_service_start',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'background_process_service_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['background-process/unlock/%background_process'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Unlock background process',
    'description' => 'Unlock background process',
    'page callback' => 'background_process_service_unlock',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'administer background process',
    ),
  );
  $items['background-process/check-token'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Check background process token',
    'description' => 'Check background process token',
    'page callback' => 'background_process_check_token',
    'page arguments' => array(
      2,
    ),
    'access callback' => TRUE,
    'file' => 'background_process.pages.inc',
  );
  $items['admin/config/system/background-process/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
    'weight' => 1,
  );
  $items['admin/config/system/background-process'] = array(
    'title' => 'Background process',
    'description' => 'Administer background processes',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_process_settings_form',
    ),
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
  );
  $items['admin/config/system/background-process/overview'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Overview',
    'description' => 'Administer background processes',
    'page callback' => 'background_process_overview_page',
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
    'weight' => 3,
  );
  $items['admin/config/system/background-process/dispatchers/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
    'weight' => 1,
  );
  $items['admin/config/system/background-process/dispatchers'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Dispatchers',
    'description' => 'Administer dispatchers',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_process_dispatchers_form',
    ),
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
    'weight' => 3,
  );
  $items['admin/config/system/background-process/dispatchers/http'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'HTTP',
    'description' => 'Administer HTTP dispatcher',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_process_http_dispatcher_form',
    ),
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
    'weight' => 3,
  );
  $items['admin/config/system/background-process/dispatchers/drush'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Drush',
    'description' => 'Administer Drush dispatcher',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_process_drush_dispatcher_form',
    ),
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
    'weight' => 3,
  );
  $items['admin/config/system/background-process/dispatchers/queue'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Queue',
    'description' => 'Administer queue dispatcher',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_process_queue_dispatcher_form',
    ),
    'access arguments' => array(
      'administer background process',
    ),
    'file' => 'background_process.admin.inc',
    'weight' => 3,
  );
  return $items;
}