You are here

message_ui_delete_button.inc in Message UI 7

File

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

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

}

Classes

Namesort descending Description
message_ui_delete_button Delete button for a message instance.