You are here

function favorite_load in Favorites 7.2

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

Helper function to load a favorite.

Parameters

int $fid: The DB ID of the favorite

Return value

object The DB row from the favorites table.

File

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

Code

function favorite_load($fid) {
  global $user;
  if (strpos($fid, 'c_') !== 0) {
    return _favorites_load_favorite_db($fid);
  }
  else {
    return _favorites_load_favorite_cookie($fid);
  }
}