function follow_menu in Follow 7
Same name and namespace in other branches
- 5 follow.module \follow_menu()
- 6 follow.module \follow_menu()
- 7.2 follow.module \follow_menu()
Implementation of hook_menu().
File
- ./
follow.module, line 39 - Allows users to add links to their social network profiles.
Code
function follow_menu() {
$items = array();
$items['admin/config/services/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;
}