aggregator_category_load

Definition

aggregator_category_load($cid)
modules/aggregator/aggregator.module, line 871

Description

Load an aggregator category.

Parameters

$cid The category id.

Return value

An associative array describing the category.

Code

<?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];
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.