function aggregator_category_load

Loads an aggregator category.

Parameters

$cid: The category id.

Return value

An associative array describing the category.

File

modules/aggregator/aggregator.module, line 709

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.