function update_status_menu in Update Status 5.2
Same name and namespace in other branches
- 5 update_status.module \update_status_menu()
Implementation of hook_menu().
File
- ./
update_status.module, line 112
Code
function update_status_menu($may_cache) {
$items = array();
if ($may_cache) {
$admin_access = user_access('administer site configuration');
$items[] = array(
'path' => 'admin/logs/updates',
'title' => t('Available updates'),
'description' => t('Get a status report on installed modules and available updates.'),
'callback' => 'update_status_status',
'weight' => 10,
'access' => $admin_access,
);
$items[] = array(
'path' => 'admin/logs/updates/list',
'title' => t('List'),
'callback' => 'update_status_status',
'access' => $admin_access,
'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' => $admin_access,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/logs/updates/check',
'title' => t('Manual update check'),
'callback' => 'update_status_manual_status',
'access' => $admin_access,
'type' => MENU_CALLBACK,
);
}
return $items;
}