function quotes_get_citations in Quotes 5
Same name and namespace in other branches
- 6 quotes.module \quotes_get_citations()
- 7 quotes.module \quotes_get_citations()
Produce an array of all citations.
$return An associative array of citations in the quotes table.
1 string reference to 'quotes_get_citations'
- quotes_views_tables in ./
quotes_views.inc - Implementation of views_tables().
File
- ./
quotes.module, line 2017
Code
function quotes_get_citations() {
$list = array();
$result = db_query('SELECT DISTINCT(citation) FROM {quotes} ORDER BY citation');
while ($row = db_fetch_array($result)) {
$list[$row['citation']] = $row['citation'];
}
$list[' '] = t('unspecified');
return $list;
}