You are here

function yandex_services_auth_menu in Yandex Services Authorization API 6

Same name and namespace in other branches
  1. 8 yandex_services_auth.module \yandex_services_auth_menu()
  2. 7 yandex_services_auth.module \yandex_services_auth_menu()

Implements hook_menu().

File

./yandex_services_auth.module, line 10
Main file for the Yandex Services Authorization API module.

Code

function yandex_services_auth_menu() {
  $items = array();
  $items['admin/settings/yandex_services_auth'] = array(
    'title' => 'Yandex Services Authorization',
    'description' => 'Authorize your site to utilize Yandex services.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'yandex_services_auth_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'yandex_services_auth.admin.inc',
  );
  $items['yandex_services_auth/oauth'] = array(
    'page callback' => 'yandex_services_auth_oauth_callback',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'yandex_services_auth.admin.inc',
  );
  return $items;
}