function subscriptions_type in Subscriptions 5
1 call to subscriptions_type()
- 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 1272
Code
function subscriptions_type($account = NULL) {
global $user;
if (is_null($account)) {
$account = $user;
}
// get list of all subscribed node types
$types = subscriptions_get_types($account->uid);
// get list of available node types
$tree = node_get_types();
$omits = variable_get('subscriptions_omitted_content_types', array());
foreach ($omits as $omit) {
unset($tree[$omit]);
}
return drupal_get_form('subscriptions_type_form', $tree, $account, $types);
}