function background_batch_menu in Background Process 6
Same name and namespace in other branches
- 7.2 background_batch/background_batch.module \background_batch_menu()
- 7 background_batch/background_batch.module \background_batch_menu()
Implements hook_menu().
File
- background_batch/
background_batch.module, line 27 - This module adds background processing to Drupals batch API
Code
function background_batch_menu() {
$items = array();
$items['admin/settings/batch/settings'] = array(
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => 'Settings',
'weight' => 1,
);
$items['admin/settings/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.pages.inc',
);
$items['admin/settings/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;
}