You are here

function _notifications_subscription_defaults in Notifications 5

Same name and namespace in other branches
  1. 6.4 notifications.module \_notifications_subscription_defaults()
  2. 6 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.admin.inc
Generic subscriptions content form

File

./notifications.module, line 1066
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' => 1,
  );
}