You are here

function background_batch_menu in Background Process 7.2

Same name and namespace in other branches
  1. 6 background_batch/background_batch.module \background_batch_menu()
  2. 7 background_batch/background_batch.module \background_batch_menu()

Implements hook_menu().

File

background_batch/background_batch.module, line 32
This module adds background processing to Drupals batch API

Code

function background_batch_menu() {
  $items = array();
  $items['admin/config/system/batch/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
    'weight' => 1,
  );
  $items['admin/config/system/batch'] = array(
    'title' => 'Batch',
    'description' => 'Administer batch jobs',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'background_batch_settings_form',
    ),
    'access arguments' => array(
      'administer site',
    ),
    'file' => 'background_batch.admin.inc',
  );
  $items['admin/config/system/batch/overview'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Overview',
    'description' => 'Batch job overview',
    'page callback' => 'background_batch_overview_page',
    'access arguments' => array(
      'administer site',
    ),
    'file' => 'background_batch.pages.inc',
    'weight' => 3,
  );
  return $items;
}