function notifications_anonymous_send_intervals in Notifications 6.4
Get available send intervals for anonymous users
2 calls to notifications_anonymous_send_intervals()
- notifications_access_anonymous in ./
notifications.module - Check access for anonymous subscriptions
- notifications_send_intervals in ./
notifications.module - List of send intervals, translated.
2 string references to 'notifications_anonymous_send_intervals'
- notifications_anonymous_admin_settings_form in notifications_anonymous/
notifications_anonymous.pages.inc - Admin settings form
- notifications_send_intervals in ./
notifications.module - List of send intervals, translated.
File
- notifications_anonymous/
notifications_anonymous.module, line 159 - Notifications for anonymous users
Code
function notifications_anonymous_send_intervals() {
$list =& messaging_static(__FUNCTION__);
if (!isset($list)) {
$list = array();
$allowed = variable_get('notifications_anonymous_send_intervals', array(
0,
));
foreach (notifications_send_intervals() as $interval => $name) {
if (in_array($interval, $allowed)) {
$list[$interval] = $name;
}
}
}
return $list;
}