You are here

function favorites_menu in Favorites 7

Same name and namespace in other branches
  1. 6 favorites.module \favorites_menu()
  2. 7.2 favorites.module \favorites_menu()

Implements hook_menu().

File

./favorites.module, line 22
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;
}