function upgrade_status_menu in Upgrade Status 5
Same name and namespace in other branches
- 6 upgrade_status.module \upgrade_status_menu()
- 7 upgrade_status.module \upgrade_status_menu()
Implementation of hook_menu().
File
- ./
upgrade_status.module, line 26 - Checks to see if your installed modules are available for the next major release of Drupal.
Code
function upgrade_status_menu($may_cache) {
$items = array();
if ($may_cache) {
$admin_access = user_access('administer site configuration');
$items[] = array(
'path' => 'admin/logs/updates/upgrade',
'title' => t('Upgrade status'),
'callback' => 'upgrade_status_status',
'access' => $admin_access,
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items[] = array(
'path' => 'admin/logs/updates/upgrade/check',
'callback' => 'upgrade_status_manual_status',
'access' => $admin_access,
'type' => MENU_CALLBACK,
);
}
return $items;
}