You are here

function messaging_info in Messaging 7

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_info()

Invoke hook_messaging($name) on all modules

This is like module_invoke all with some differences:

  • The results are just merged (not recursively)
  • The module name is added to each resulting array
  • We cache all the results
3 calls to messaging_info()
messaging_address_info in ./messaging.module
Returns messaging address properties
messaging_method_info in ./messaging.module
Returns messaging methods properties
messaging_send_method in ./messaging.module
Get send method object

File

./messaging.module, line 674

Code

function &messaging_info($name, $param = NULL, $refresh = FALSE, $alter = TRUE) {
  $info =& drupal_static('messaging_info_' . $name);
  if (!isset($info) || $refresh) {
    $info = module_invoke_all('messaging', $name, $param);

    // Provide alter hook
    if ($alter) {
      drupal_alter('messaging_' . strtr($name, ' ', '_'), $info);
    }
  }
  return $info;
}