You are here

function favorites_list in Favorites 7.2

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

Generate the "My Favorites" list.

Return value

string Rendered favorites list.

3 calls to favorites_list()
favorites_add_favorite_js in ./favorites.module
AHAH callback for add favorites form.
favorites_block_view in ./favorites.module
Implements hook_block_view().
favorites_remove_favorite in ./favorites.module
Deletes a favorite.

File

./favorites.module, line 155
The favorites module allows users to bookmark any path within a site.

Code

function favorites_list() {
  global $user;
  $favorites = favorites_load_favorites($user);
  return theme('favorites', array(
    'favorites' => $favorites,
  ));
}