You are here

function tweetbutton_menu in Tweet Button 7

Same name and namespace in other branches
  1. 8 tweetbutton.module \tweetbutton_menu()
  2. 6 tweetbutton.module \tweetbutton_menu()
  3. 7.2 tweetbutton.module \tweetbutton_menu()

Implementation of hook_menu()

File

./tweetbutton.module, line 25

Code

function tweetbutton_menu() {
  $items = array();
  $items['admin/config/services/tweetbutton'] = array(
    'title' => 'Tweet Button',
    'description' => 'Configure the look and behavior of the Tweet Button appears on the site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tweetbutton_admin_settings',
    ),
    'access arguments' => array(
      'administer tweetbutton',
    ),
    'file' => 'tweetbutton.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/services/tweetbutton/settings'] = array(
    'title' => 'General Settings',
    'description' => 'Change the look and behavior of the Tweet Button.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tweetbutton_admin_settings',
    ),
    'access arguments' => array(
      'administer tweetbutton',
    ),
    'file' => 'tweetbutton.admin.inc',
    'weight' => 0,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/services/tweetbutton/node'] = array(
    'title' => 'Node Settings',
    'description' => 'Configure how the Tweet Button interacts with nodes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tweetbutton_node_settings',
    ),
    'access arguments' => array(
      'administer tweetbutton',
    ),
    'file' => 'tweetbutton.admin.inc',
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}