You are here

function aggregator_category_load in Drupal 6

Same name and namespace in other branches
  1. 7 modules/aggregator/aggregator.module \aggregator_category_load()

Load an aggregator category.

Parameters

$cid: The category id.

Return value

An associative array describing the category.

File

modules/aggregator/aggregator.module, line 883
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

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