You are here

function quotes_get_citations in Quotes 6

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

Produce an array of all citations.

$return An associative array of citations in the quotes table.

File

./quotes.module, line 1712
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_get_citations() {
  $list = array(
    ' ' => t('unspecified'),
  );
  $result = db_query('SELECT DISTINCT(citation) FROM {quotes} ORDER BY citation');
  while ($row = db_fetch_array($result)) {
    $list[$row['citation']] = $row['citation'];
  }
  return $list;
}