function aggregator_category_load

aggregator_category_load($cid)

Loads an aggregator category.

Parameters

$cid: The category id.

Return value

An associative array describing the category.

File

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

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.module/function/aggregator_category_load/7.x