function hosting_quota_menu in Hosting 6.2
Same name and namespace in other branches
- 7.4 quota/hosting_quota.module \hosting_quota_menu()
- 7.3 quota/hosting_quota.module \hosting_quota_menu()
Implements hook_menu
File
- quota/
hosting_quota.module, line 16 - Implement quota's for the resource used by client.
Code
function hosting_quota_menu() {
$items = array();
$items['admin/hosting/quotas'] = array(
'title' => t('Quotas'),
'description' => t('Aegir client quotas'),
'page callback' => 'hosting_quota_admin_client_list',
'access arguments' => array(
'view all quotas',
),
'type' => MENU_LOCAL_TASK,
'file' => 'hosting_quota.admin.inc',
);
$items['admin/hosting/quotas/list'] = array(
'title' => t('List Client Quotas'),
'description' => t('Listing of all client quotas'),
'access arguments' => array(
'view all quotas',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'hosting_quota.admin.inc',
);
$items['admin/hosting/quotas/defaults'] = array(
'title' => t('Default Client Quotas'),
'description' => t('Set defaults for client quotas'),
'access arguments' => array(
'edit all quotas',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hosting_quota_admin_defaults_form',
),
'type' => MENU_LOCAL_TASK,
'file' => 'hosting_quota.admin.inc',
);
return $items;
}