function subscriptions_taxa in Subscriptions 5
Returns a list of taxonomy subscriptions
1 call to subscriptions_taxa()
- 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 1180
Code
function subscriptions_taxa($account = NULL) {
global $user;
if (is_null($account)) {
$account = $user;
}
// traverse the taxonomy tree
$vocabularies = function_exists('taxonomy_help') ? taxonomy_get_vocabularies() : array();
// omit undesired vocabularies from listing
$omits = variable_get('subscriptions_omitted_taxa', array());
foreach ($omits as $omit) {
unset($vocabularies[$omit]);
}
return drupal_get_form('subscriptions_taxa_form', $vocabularies, $account);
}