function subscriptions_get_types in Subscriptions 5
1 call to subscriptions_get_types()
File
- ./
subscriptions.module, line 1006
Code
function subscriptions_get_types($uid) {
$result = db_query('SELECT stype FROM {subscriptions} WHERE uid = %d', $uid);
while ($typesub = db_fetch_object($result)) {
if (substr($typesub->stype, 0, 4) == 'type') {
$tsubscriptions[] = substr($typesub->stype, 4);
}
}
return $tsubscriptions ? $tsubscriptions : array();
}