You are here

message_ui_test.module in Message UI 7

Dummy module for for testing how other modules will interact with message UI.

File

message_ui_test/message_ui_test.module
View source
<?php

/**
 * @file
 * Dummy module for for testing how other modules will interact with message UI.
 */

/**
 * Implements hook_message_message_ui_access_control().
 */
function message_ui_test_message_message_ui_access_control($message, $op, $account) {
  if (empty($message->mid)) {
    return;
  }
  return $message->{$op} ? MESSAGE_UI_ALLOW : MESSAGE_UI_DENY;
}