You are here

message_ui_view_button.inc in Message UI 7

File

views/handlers/message_ui_view_button.inc
View source
<?php

/**
 * Delete button for a message instance.
 */
class message_ui_view_button extends views_handler_field_entity {
  function render($values) {
    $message = message_load($values->mid);
    if (message_ui_access_control('view', $message)) {
      return l(t('View'), 'message/' . $message->mid);
    }
  }

}

Classes

Namesort descending Description
message_ui_view_button Delete button for a message instance.