| Versionen | |
|---|---|
| drupal6 – drupal7 | aggregator_category_load($cid) |
Load an aggregator category.
$cid The category id.
An associative array describing the category.
modules/
<?php
function aggregator_category_load($cid) {
static $categories;
if (!isset($categories[$cid])) {
$categories[$cid] = db_query('SELECT * FROM {aggregator_category} WHERE cid = :cid', array(':cid' => $cid))->fetchAssoc();
}
return $categories[$cid];
}
?>
Kommentare
Kommentar hinzufügen