function follow_menu in Follow 7.2
Same name and namespace in other branches
- 5 follow.module \follow_menu()
- 6 follow.module \follow_menu()
- 7 follow.module \follow_menu()
Implements hook_menu().
File
- ./
follow.module, line 24
Code
function follow_menu() {
$items = array();
// Generates CSS files if they don't already exist. WARNING: if clean URLs are
// disabled, CSS will always be served through the menu system, requiring a
// full drupal bootstrap. If clean URLs are enabled and the CSS file already
// exists, Drupal will be bypassed.
$items[_follow_css_get_path()] = array(
'title' => 'Generate Follow CSS',
'page callback' => 'follow_css',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$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,
);
return $items;
}