function automatic_updates_menu in Automatic Updates 7
Implements hook_menu().
File
- ./
automatic_updates.module, line 64 - Contains automatic_updates.module.
Code
function automatic_updates_menu() {
$items = [];
$items['admin/config/system/automatic_updates'] = [
'title' => 'Automatic Updates',
'description' => 'Configure automatic update settings.',
'page callback' => 'drupal_get_form',
'page arguments' => [
'automatic_updates_admin_form',
],
'file' => 'automatic_updates.admin.inc',
'access arguments' => [
'administer software updates',
],
'tab parent' => 'admin/config/system',
];
$items['admin/config/system/automatic_updates/readiness'] = [
'title' => 'Update readiness checking...',
'page callback' => 'automatic_updates_run_checks',
'file' => 'automatic_updates.admin.inc',
'access arguments' => [
'administer software updates',
],
'type' => MENU_CALLBACK,
];
$items['automatic_updates/in-place-update/%/%/%/%'] = [
'title' => 'Update',
'page callback' => 'automatic_updates_in_place_update',
'page arguments' => [
2,
3,
4,
5,
],
'type' => MENU_CALLBACK,
'file' => 'automatic_updates.pages.inc',
'access arguments' => [
'administer software updates',
],
];
return $items;
}