You are here

function messaging_method_type in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_method_type()
  2. 6 messaging.module \messaging_method_type()
  3. 6.2 messaging.module \messaging_method_type()
  4. 6.3 messaging.module \messaging_method_type()
  5. 7 messaging.module \messaging_method_type()

Returns list of messaging methods for a type

I.e. all messaging methods of pull type

File

./messaging.module, line 579

Code

function messaging_method_type($type) {
  $result = array();
  foreach (messaging_method_info() as $method => $info) {
    if ($info['type'] & $type) {
      $result[$method] = $info;
    }
  }
  return $result;
}