function twitter_menu in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter.module \twitter_menu()
- 6.2 twitter.module \twitter_menu()
- 6.4 twitter.module \twitter_menu()
- 7.6 twitter.module \twitter_menu()
- 7.3 twitter.module \twitter_menu()
- 7.4 twitter.module \twitter_menu()
- 7.5 twitter.module \twitter_menu()
Implementation of hook_meu()
File
- ./
twitter.module, line 17
Code
function twitter_menu() {
$items = array();
$items['twitter/oauth'] = array(
'title' => 'Twitter',
'access callback' => TRUE,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'twitter_oauth_callback',
),
'type' => MENU_CALLBACK,
'file' => 'twitter.pages.inc',
);
$items['admin/settings/twitter'] = array(
'title' => 'Twitter setup',
'description' => 'Twitter module settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'twitter_admin_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'twitter.pages.inc',
);
$items['admin/settings/twitter/default'] = array(
'title' => 'Twitter',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['user/%user_category/edit/twitter'] = array(
'title' => 'Twitter accounts',
'page callback' => 'twitter_user_settings',
'page arguments' => array(
1,
),
'access callback' => 'twitter_edit_access',
'access arguments' => array(
1,
),
'load arguments' => array(
'%map',
'%index',
),
'weight' => 10,
'file' => 'twitter.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/edit/twitter/global/%'] = array(
'title' => 'Twitter accounts',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'twitter_user_make_global',
1,
5,
),
'access arguments' => array(
'make twitter accounts global',
),
'file' => 'twitter.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}