You are here

function notifications_send_methods in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications.module \notifications_send_methods()

Get list of send methods for user or anonymous account

4 calls to notifications_send_methods()
notifications_account_overview in notifications_account/notifications_account.pages.inc
Menu callback. Overview page for user subscriptions.
notifications_content_test_template_form in notifications_content/notifications_content.admin.inc
Template testing form
Notifications_Subscription::element_send_method in ./notifications.subscription.inc
Send method: form element
notifications_subscription_base_form in ./notifications.pages.inc
Base subscription form. Present the main fields and check all values
1 string reference to 'notifications_send_methods'
_notifications_send_methods in ./notifications.module
List of send methods

File

./notifications.module, line 1204
Notifications module

Code

function notifications_send_methods($account) {

  // We restrict send methods for anonymous accounts when edited by regular users
  if (empty($account->uid) && function_exists('notifications_anonymous_send_methods')) {
    return notifications_anonymous_send_methods();
  }
  else {
    return _notifications_send_methods($account);
  }
}