You are here

function subscriptions_get_taxa_count in Subscriptions 5

1 call to subscriptions_get_taxa_count()
subscriptions_page in ./subscriptions.module
displays subscribed content data on user and subuscription pages @ TODO clean up all of these parts

File

./subscriptions.module, line 1016

Code

function subscriptions_get_taxa_count() {
  $result = db_query('SELECT sid, count(*) as tcount FROM {subscriptions} WHERE stype=\'taxa\' GROUP BY sid');
  while ($taxasub = db_fetch_object($result)) {
    $tsubscriptions[$taxasub->sid] = $taxasub->tcount;
  }
  return $tsubscriptions ? $tsubscriptions : array();
}