aggregator_category_load

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 7 aggregator_category_load($cid)

Load an aggregator category.

Parameters

$cid The category id.

Return value

An associative array describing the category.

Code

modules/aggregator/aggregator.module, line 683

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