You are here

function subscriptions_get_taxa in Subscriptions 5

1 call to subscriptions_get_taxa()
subscriptions_taxa_form in ./subscriptions.module
Returns the taxonomy subscription form

File

./subscriptions.module, line 998

Code

function subscriptions_get_taxa($uid) {
  $result = db_query('SELECT sid FROM {subscriptions} WHERE uid = %d and stype=\'taxa\'', $uid);
  while ($taxasub = db_fetch_object($result)) {
    $tsubscriptions[] = $taxasub->sid;
  }
  return $tsubscriptions ? $tsubscriptions : array();
}