You are here

function messaging_mail_methods in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging_mail/messaging_mail.module \messaging_mail_methods()

Get list of mail methods

File

messaging_mail/messaging_mail.module, line 93
Simple mail using Drupal API. Messaging method plug-in

Code

function messaging_mail_methods() {
  $mail_methods = array();
  foreach (messaging_method_info() as $method => $info) {
    if (!empty($info['group']) && $info['group'] == 'mail') {
      $mail_methods[] = $method;
    }
  }
  return $mail_methods;
}