function tweetbutton_menu in Tweet Button 6
Same name and namespace in other branches
- 8 tweetbutton.module \tweetbutton_menu()
- 7.2 tweetbutton.module \tweetbutton_menu()
- 7 tweetbutton.module \tweetbutton_menu()
Implementation of hook_menu()
File
- ./
tweetbutton.module, line 17
Code
function tweetbutton_menu() {
$items = array();
$items['admin/settings/tweetbutton/list'] = array(
'title' => 'Tweetbutton Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/settings/tweetbutton'] = array(
'title' => 'Tweetbutton Settings',
'description' => 'Configure tweetbutton settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweetbutton_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'tweetbutton.admin.inc',
'weight' => 0,
);
$items['admin/settings/tweetbutton/node'] = array(
'title' => 'Tweetbutton Node Settings',
'description' => 'Configure tweetbutton for nodes',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweetbutton_node_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'tweetbutton.admin.inc',
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
return $items;
}