You are here

function message_ui_show_message in Message UI 7

Display the message.

1 string reference to 'message_ui_show_message'
message_ui_menu in ./message_ui.module
Implements hook_menu().

File

./message_ui.module, line 787
Main file for the message UI module.

Code

function message_ui_show_message(Message $message) {
  $build = $message
    ->view();
  $build += array(
    '#theme' => 'message',
    '#entity' => $message,
    '#view_mode' => 'full',
  );
  $build['#contextual_links']['message'] = array(
    'message',
    array(
      $message
        ->identifier(),
    ),
  );

  // Allow modules to modify the structured node.
  drupal_alter('message_ui_view', $build, $message);
  return $build;
}