You are here

function commons_events_commons_notify_message_selection_alter in Drupal Commons 7.3

Implements hook_commons_notify_message_selection_alter().

File

modules/commons/commons_events/commons_events.module, line 634

Code

function commons_events_commons_notify_message_selection_alter(&$message_type, $hook, $node) {

  // Provide a special message type that describes the event details
  // when a new event node is created.
  if ($hook == 'node_insert' && $node->type == 'event') {
    $message_type = 'commons_events_event_node_created';
  }
}