function oauth_menu in OAuth 1.0 6
Implementation of hook_menu
File
- ./
oauth.module, line 8
Code
function oauth_menu() {
$items = array();
$items['admin/build/oauth'] = array(
'title' => t('Test OAuth'),
'description' => t('Test OAuth calls to server'),
'page callback' => 'oauth_test_calls',
// 'access callback' => 'oauth_test_calls',
'access arguments' => array(
'consume provided services',
),
'weight' => 10,
);
$items['oauth/request'] = array(
'title' => t('Request token'),
'page callback' => 'oauth_request_token',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['oauth/auth'] = array(
'title' => t('Authorize remote service'),
'page callback' => 'oauth_auth_token',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['oauth/access'] = array(
'title' => t('Request'),
'page callback' => 'oauth_access_token',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
/**
* @TODO Move the consumer settings to a separate tab.
*/
/*
$items['user/%user/services'] = array(
'title' => t('Consumer settings'),
'page callback' => 'oauth_consumer_view',
'access callback' => 'oauth_access_consumer_view',
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
*/
return $items;
}