You are here

function quotes_load in Quotes 6

Same name and namespace in other branches
  1. 5 quotes.module \quotes_load()
  2. 7 quotes.module \quotes_load()

Implementation of hook_load().

File

./quotes.module, line 378
The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.

Code

function quotes_load($node) {
  $obj = db_fetch_object(db_query("SELECT a.aid AS quotes_aid, a.name AS quotes_author, a.bio AS quotes_bio, q.citation AS quotes_citation, q.promote AS quotes_promote FROM {quotes} q JOIN {quotes_authors} a USING (aid) WHERE q.vid = %d", $node->vid));
  return $obj;
}