You are here

function messaging_info in Messaging 6.4

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

Invoke hook_notifications($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
4 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
messaging_text_filter_info in includes/text.inc
Get information of available filters for message texts

File

./messaging.module, line 1207

Code

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

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