You are here

function restful_token_auth_menu in RESTful 7

Same name and namespace in other branches
  1. 7.2 modules/restful_token_auth/restful_token_auth.module \restful_token_auth_menu()

Implements hook_menu().

File

modules/restful_token_auth/restful_token_auth.module, line 11
RESTful token authentication.

Code

function restful_token_auth_menu() {

  // Add administration page.
  $items['admin/config/services/restful/token-auth'] = array(
    'title' => 'Token Authentication',
    'description' => 'Administer the RESTful Token Authentication module.',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'restful_token_auth_admin_settings',
    ),
    'access arguments' => array(
      'administer restful',
    ),
    'file' => 'restful_token_auth.admin.inc',
  );
  return $items;
}