You are here

function notifications_send_intervals in Notifications 6.2

Same name and namespace in other branches
  1. 6.4 notifications.module \notifications_send_intervals()
  2. 7 notifications.module \notifications_send_intervals()

List of send intervals, translated.

13 calls to notifications_send_intervals()
notifications_add_subscription_form in ./notifications.pages.inc
Form for creating new subscriptions
notifications_content_form in notifications_content/notifications_content.pages.inc
Generic subscriptions content form
notifications_form_alter in ./notifications.module
Implementation of hook_form_alter()
notifications_form_subscribe_confirm in ./notifications.pages.inc
Form for subscription confirmation
notifications_manage_subscriptions_form in ./notifications.manage.inc
Administer user subscriptions

... See full list

3 string references to 'notifications_send_intervals'
notifications_locale_refresh in ./notifications.module
Refresh notifications strings
notifications_send_intervals_form_submit in ./notifications.admin.inc
Form submit for time intervals
_notifications_send_intervals in ./notifications.module
List of send intervals. These may be overriden in a variable.

File

./notifications.module, line 1463
Notifications module

Code

function notifications_send_intervals() {
  if ($intervals = variable_get('notifications_send_intervals', FALSE)) {
    foreach ($intervals as $key => $name) {
      $intervals[$key] = notifications_translate("send_interval:{$key}:name", $name);
    }
    return $intervals;
  }
  else {
    return _notifications_send_intervals();
  }
}