function favorites_menu in Favorites 6
Same name and namespace in other branches
- 7.2 favorites.module \favorites_menu()
- 7 favorites.module \favorites_menu()
Implements hook_menu().
File
- ./
favorites.module, line 18 - The favorites module allows users to bookmark any path within a site.
Code
function favorites_menu() {
$items['favorites/remove/%favorite'] = array(
'page callback' => 'favorites_remove_favorite',
'page arguments' => array(
2,
),
'access arguments' => array(
'manage own favorites',
),
'title' => 'Remove Favorite',
'type' => MENU_CALLBACK,
);
$items['favorites/js/add'] = array(
'page callback' => 'favorites_add_favorite_js',
'access arguments' => array(
'manage own favorites',
),
'title' => 'Add favorite via js',
'type' => MENU_CALLBACK,
);
return $items;
}