You are here

function messaging_notify_method_list in Messaging 6

Available methods to subscribe to

1 string reference to 'messaging_notify_method_list'
messaging_notify_notifications in messaging_notify/messaging_notify.module
Implementation of hook_notifications()

File

messaging_notify/messaging_notify.module, line 212
Subscriptions to messaging events

Code

function messaging_notify_method_list() {
  $options = array();
  $allowed = variable_get('messaging_notify_subscribe', array());
  foreach (messaging_method_info(NULL, 'name') as $method => $name) {
    if (!empty($allowed[$method])) {
      $options[$method] = $name;
    }
  }
  return $options;
}