function gauth_menu in Google Auth 7
Same name and namespace in other branches
- 6 gauth.module \gauth_menu()
- 7.2 gauth.module \gauth_menu()
Implements hook_menu().
File
- ./
gauth.module, line 36 - Google Auth Api for drupal.
Code
function gauth_menu() {
$items = array();
$items['admin/config/services/gauth_account'] = array(
'title' => 'Google Account Settings',
'description' => 'Google Account settings.',
'page callback' => 'gauth_account_list',
'access arguments' => array(
'administer site configuration',
),
'file' => 'gauth.admin.inc',
);
$items['admin/config/services/gauth_account/add'] = array(
'title' => 'Add Account',
'description' => 'Google Account Add.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gauth_account_edit_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_ACTION,
'file' => 'gauth.admin.inc',
);
$items['admin/config/services/gauth_account/edit/%'] = array(
'title' => 'Google Account Edit',
'description' => 'Google Account Edit.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gauth_account_edit_form',
5,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'gauth.admin.inc',
);
$items['admin/config/services/gauth_account/delete/%'] = array(
'title' => 'Google Account Delete',
'description' => 'Google Account delete.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gauth_account_delete_form',
5,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'gauth.admin.inc',
);
$items['gauth/response_handler'] = array(
'page callback' => 'gauth_response_handler',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['gauth/revoke_token/%'] = array(
'title' => 'Google Account Token Revoke',
'description' => 'Revoke a access token.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gauth_account_token_revoke_form',
2,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'gauth.admin.inc',
);
return $items;
}