function notifications_send_intervals in Notifications 6.4
Same name and namespace in other branches
- 6.2 notifications.module \notifications_send_intervals()
- 7 notifications.module \notifications_send_intervals()
List of send intervals, translated.
12 calls to notifications_send_intervals()
- notifications_anonymous_send_intervals in notifications_anonymous/
notifications_anonymous.module - Get available send intervals for anonymous users
- notifications_destination_manage_subform in includes/
destination.inc - Destination manage subform. List/edit subscriptions for destination.
- notifications_destination_subscriptions_operations in includes/
destination.inc - Subscription mass operations.
- notifications_form_alter in ./
notifications.module - Implementation of hook_form_alter()
- notifications_manage_subscriptions_form in ./
notifications.manage.inc - Administer user subscriptions
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 1820 - Notifications module
Code
function notifications_send_intervals($account = NULL) {
$list =& messaging_static(__FUNCTION__);
if ($account && !$account->uid && function_exists('notifications_anonymous_send_intervals')) {
return notifications_anonymous_send_intervals();
}
if (!isset($intervals)) {
if ($intervals = variable_get('notifications_send_intervals', FALSE)) {
foreach ($intervals as $key => $name) {
$list[$key] = notifications_translate("send_interval:{$key}:name", $name);
}
}
else {
$list = _notifications_send_intervals();
}
}
return $list;
}