function notifications_tags_vocabulary_enabled in Notifications 7
Check whether subscriptions are allowed to this vocabulary or get list of enabled vids
6 calls to notifications_tags_vocabulary_enabled()
- notifications_scheduler_new_posts_action_form in notifications_scheduler/
notifications_scheduler.module - Action: Configuration form
- notifications_tags_autocomplete in notifications_tags/
notifications_tags.module - Helper function for autocompletion
- notifications_tags_autocomplete_validate in notifications_tags/
notifications_tags.module - Form element validate handler for taxonomy term autocomplete element.
- notifications_tags_notifications_object_node in notifications_tags/
notifications_tags.module - Implementation of hook_notifications_object_node()
- notifications_tags_notifications_object_taxonomy_term in notifications_tags/
notifications_tags.module - Implements hook_notifications_object_taxonomy_term()
File
- notifications_tags/
notifications_tags.module, line 326 - Subscriptions to taxonomy terms
Code
function notifications_tags_vocabulary_enabled($vid = NULL) {
$enabled_vids = variable_get('notifications_tags_vocabularies', array());
if (isset($vid)) {
$vid = is_object($vid) ? $vid->vid : $vid;
return in_array($vid, $enabled_vids);
}
else {
return $enabled_vids;
}
}