function update_status_menu in Update Status 5
Same name and namespace in other branches
- 5.2 update_status.module \update_status_menu()
Implementation of hook_menu().
File
- ./
update_status.module, line 28
Code
function update_status_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/logs/updates',
'title' => t('Available updates'),
'description' => t('Get a status report on your installed modules and available updates.'),
'callback' => 'update_status_status',
'weight' => 10,
'access' => user_access('administer site configuration'),
);
$items[] = array(
'path' => 'admin/logs/updates/list',
'title' => t('List'),
'callback' => 'update_status_status',
'access' => user_access('administer site configuration'),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/logs/updates/settings',
'title' => t('Settings'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'update_status_settings',
),
'access' => user_access('administer site configuration'),
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/logs/updates/force-check',
'title' => t('Manual update check'),
'callback' => 'update_status_force_status',
'access' => user_access('administer site configuration'),
'type' => MENU_CALLBACK,
);
}
return $items;
}