function _notifications_subscription_defaults in Notifications 6.3
Same name and namespace in other branches
- 5 notifications.module \_notifications_subscription_defaults()
- 6.4 notifications.module \_notifications_subscription_defaults()
- 6 notifications.module \_notifications_subscription_defaults()
- 6.2 notifications.module \_notifications_subscription_defaults()
Default values for subscription
2 calls to _notifications_subscription_defaults()
- notifications_save_subscription in ./
notifications.module - Update or create subscription
- notifications_user_form in ./
notifications.module - Generic subscriptions content form
File
- ./
notifications.module, line 1498 - Notifications module
Code
function _notifications_subscription_defaults($account = NULL) {
$language = $account ? user_preferred_language($account) : language_default();
return array(
'send_interval' => notifications_user_setting('send_interval', $account, 0),
'send_method' => notifications_user_setting('send_method', $account, ''),
'module' => 'notifications',
'status' => NOTIFICATIONS_SUBSCRIPTION_ACTIVE,
'destination' => '',
'cron' => 1,
'language' => $language->language,
);
}