function aggregator_category_load

Same name and namespace in other branches
  1. 6.x drupal-6.x/modules/aggregator/aggregator.module \aggregator_category_load()

Loads an aggregator category.

Parameters

$cid: The category id.

Return value

An associative array describing the category.

Archivo

drupal-7.x/modules/aggregator/aggregator.module, line 701
Used to aggregate syndicated content (RSS, RDF, and Atom).

Código

function aggregator_category_load($cid) {
  $categories = &drupal_static(__FUNCTION__);
  if (!isset($categories[$cid])) {
    $categories[$cid] = db_query('SELECT * FROM {aggregator_category} WHERE cid = :cid', array(':cid' => $cid))->fetchAssoc();
  }

  return $categories[$cid];
}