function notifications_ui_account_options in Notifications 6
Same name and namespace in other branches
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_account_options()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_account_options()
Get subscribe otpions for user account tabs
Parameters
$type: Content type
$option: Optional option to check
2 calls to notifications_ui_account_options()
- notifications_ui_block in notifications_ui/
notifications_ui.module - Implementation of hook_block()
- notifications_ui_user in notifications_ui/
notifications_ui.module
2 string references to 'notifications_ui_account_options'
- notifications_ui_settings_form in notifications_ui/
notifications_ui.pages.inc - Site-wide settings form.
- notifications_ui_uninstall in notifications_ui/
notifications_ui.install - Implementation of hook_uninstall()
File
- notifications_ui/
notifications_ui.module, line 574 - User Interface for subscriptions modules
Code
function notifications_ui_account_options($option = NULL) {
// The default setting will be 'links' = 1
$settings = variable_get('notifications_ui_account_options', array(
'links',
));
if ($option) {
return in_array($option, $settings, TRUE);
}
else {
return $settings;
}
}