You are here

function follow_menu in Follow 6

Same name and namespace in other branches
  1. 5 follow.module \follow_menu()
  2. 7.2 follow.module \follow_menu()
  3. 7 follow.module \follow_menu()

Implementation of hook_menu().

File

./follow.module, line 38
Allows users to add links to their social network profiles.

Code

function follow_menu() {
  $items = array();
  $items['admin/build/follow'] = array(
    'title' => 'Follow',
    'description' => 'Configure the site-wide web service follow links.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'follow_links_form',
    ),
    'access arguments' => array(
      'edit site follow links',
    ),
  );
  $items['user/%/follow'] = array(
    'title' => 'Follow',
    'description' => 'Update the associated web service follow links.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'follow_links_form',
      1,
    ),
    'access callback' => 'follow_links_user_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
  );

  // No settings!

  /* $items['admin/settings/follow'] = array(
      'title' => 'Follow',
      'description' => 'Administer the follow module',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('follow_settings_form'),
      'access arguments' => array('administer follow'),
    ); */
  return $items;
}