You are here

function notifications_anonymous_send_methods in Notifications 6.4

Get available sending methods for anonymous users

4 calls to notifications_anonymous_send_methods()
notifications_access_anonymous in ./notifications.module
Check access for anonymous subscriptions
notifications_anonymous_destination_method in notifications_anonymous/notifications_anonymous.module
Get sending method for destination
notifications_anonymous_subscription_access in notifications_anonymous/notifications_anonymous.module
Menu access callback for subscriptions
notifications_send_methods in ./notifications.module
Get list of send methods for user or anonymous account
3 string references to 'notifications_anonymous_send_methods'
notifications_anonymous_admin_settings_form in notifications_anonymous/notifications_anonymous.pages.inc
Admin settings form
notifications_anonymous_admin_settings_form_validate in notifications_anonymous/notifications_anonymous.pages.inc
Validate admin settings
notifications_send_methods in ./notifications.module
Get list of send methods for user or anonymous account

File

notifications_anonymous/notifications_anonymous.module, line 142
Notifications for anonymous users

Code

function notifications_anonymous_send_methods() {
  $list =& messaging_static(__FUNCTION__);
  if (!isset($list)) {
    $list = array();
    $allowed = variable_get('notifications_anonymous_send_methods', array(
      'mail',
    ));
    foreach (messaging_method_list() as $method => $name) {
      if (in_array($method, $allowed)) {
        $list[$method] = $name;
      }
    }
  }
  return $list;
}