You are here

function gauth_menu in Google Auth 6

Same name and namespace in other branches
  1. 7.2 gauth.module \gauth_menu()
  2. 7 gauth.module \gauth_menu()

Implementation of hook_menu().

File

./gauth.module, line 16

Code

function gauth_menu() {
  $items = array();
  $items['admin/settings/gauth'] = array(
    'title' => 'Google Auth',
    'description' => 'Google Authentication settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gauth_settings_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer gauth',
    ),
    'file' => 'gauth.admin.inc',
  );
  $items['gauth-token'] = array(
    'title' => 'Google Auth Token',
    'description' => 'Google Authentication callback',
    'page callback' => 'gauth_access_token',
    'access callback' => 'user_access',
    'access arguments' => array(
      'authenticate with google apps',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}