You are here

function _notifications_subscription_defaults in Notifications 6

Same name and namespace in other branches
  1. 5 notifications.module \_notifications_subscription_defaults()
  2. 6.4 notifications.module \_notifications_subscription_defaults()
  3. 6.2 notifications.module \_notifications_subscription_defaults()
  4. 6.3 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 1407
Notifications module

Code

function _notifications_subscription_defaults($account = NULL) {
  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,
  );
}