function notifications_ui_node_options in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_ui/notifications_ui.module \notifications_ui_node_options()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_node_options()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_node_options()
- 7 notifications_ui/notifications_ui.module \notifications_ui_node_options()
Get settings value for content types
Parameters
$type: Content type to get settings for
$option: Optional option to check (each option can be enabled or disabled)
5 calls to notifications_ui_node_options()
- notifications_ui_content_extra_fields in notifications_ui/
notifications_ui.module - Implementation of hook hook_content_extra_fields().
- notifications_ui_display_options in notifications_ui/
notifications_ui.module - Check enabled option for object type / display type
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
- notifications_ui_link in notifications_ui/
notifications_ui.module - Implementation of hook_link()
- notifications_ui_node_subscriptions in notifications_ui/
notifications_ui.module - Find subscriptions options for this node
3 string references to 'notifications_ui_node_options'
- notifications_ui_settings_form in notifications_ui/
notifications_ui.admin.inc - Site-wide settings form.
- notifications_ui_uninstall in notifications_ui/
notifications_ui.install - Implementation of hook_uninstall()
- notifications_ui_update_6002 in notifications_ui/
notifications_ui.install - Change some variables for uniform notifications_ui_[object]_options
File
- notifications_ui/
notifications_ui.module, line 394 - User Interface for subscriptions modules
Code
function notifications_ui_node_options($type = NULL, $option = NULL) {
// We can use global options or per content type options. The default setting will be 'links' = 1
$options = variable_get('notifications_ui_node_options', array(
'links',
'block',
));
if ($type && variable_get('notifications_ui_per_type', 0)) {
$options = variable_get('notifications_node_ui_' . $type, $options);
}
return $option ? in_array($option, $options, TRUE) : $options;
}