You are here

function favorite_load in Favorites 6

Same name and namespace in other branches
  1. 7.2 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 44
The favorites module allows users to bookmark any path within a site.

Code

function favorite_load($fid) {
  return db_fetch_object(db_query("SELECT * FROM {favorites} WHERE fid = %d", $fid));
}