You are here

function hosting_quota_menu in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 quota/hosting_quota.module \hosting_quota_menu()
  2. 7.4 quota/hosting_quota.module \hosting_quota_menu()

Implements hook_menu().

File

quota/hosting_quota.module, line 38
Implement quota's for the resource used by client.

Code

function hosting_quota_menu() {
  $items = array();
  $items['admin/hosting/quotas'] = array(
    'title' => 'Quotas',
    'description' => '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' => 'List Client Quotas',
    'description' => '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' => 'Default Client Quotas',
    'description' => '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;
}