function background_process_menu in Background Process 6
Same name and namespace in other branches
- 7.2 background_process.module \background_process_menu()
- 7 background_process.module \background_process_menu()
Implements hook_menu().
File
- ./
background_process.module, line 62
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,
2,
),
);
$items['background-process/unlock/%'] = 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',
),
'file' => 'background_process.admin.inc',
);
$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/settings/background-process/settings'] = array(
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => 'Settings',
'weight' => 1,
);
$items['admin/settings/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/settings/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,
);
return $items;
}