| 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_fetch_array(db_query('SELECT * FROM {aggregator_category} WHERE cid = %d', $cid));
}
return $categories[$cid];
}
?>
Kommentare
Kommentar hinzufügen