function twitter_menu in Twitter 6.2
Same name and namespace in other branches
- 6.5 twitter.module \twitter_menu()
- 6.3 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 6
Code
function twitter_menu() {
$items = array();
$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['user/%user_category/edit/twitter'] = array(
'title' => 'Twitter accounts',
'page callback' => 'twitter_user_settings',
'page arguments' => array(
1,
),
'access arguments' => array(
'add twitter accounts',
),
'load arguments' => array(
'%map',
'%index',
),
'weight' => 10,
'file' => 'twitter.pages.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}