You are here

function notifications_info in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications.module \notifications_info()
  2. 6 notifications.module \notifications_info()
  3. 6.2 notifications.module \notifications_info()
  4. 6.3 notifications.module \notifications_info()

Invoke hook_notifications($name) on all modules and get a property from the array

Properties will be overridden by the value of 'notifications_option_[$name]

15 calls to notifications_info()
notifications_admin_events_form in ./notifications.admin.inc
Event configuration administration
notifications_build_method in ./notifications.module
Information about digesting method for a send interval.
notifications_content_test_template_form in notifications_content/notifications_content.admin.inc
Template testing form
notifications_event_type in ./notifications.module
Get information about event types. Invoking this function will also load the event API
Notifications_Field::type_info in ./notifications.field.inc
Get field type information

... See full list

File

./notifications.module, line 1085
Notifications module

Code

function notifications_info($name, $type = NULL, $property = NULL, $default = NULL) {
  $_name = strtr($name, ' ', '_');
  $info =& drupal_static('notifications_info_' . $_name);
  if (!isset($info)) {
    $info = module_invoke_all('notifications', $name);

    // Override with variable values
    foreach ($info as $key => &$data) {
      if ($options = notifications_option_get($_name . '_' . $key)) {
        $data = array_merge($data, $options);
      }
    }

    // Provide alter hook: notifications_name
    drupal_alter('notifications_' . $_name, $info);
  }
  return messaging_array_info($info, $type, $property, $default);
}