You are here

message_notify_ui_notify_button.inc in Message UI 7

File

message_notify_ui/views/handlers/message_notify_ui_notify_button.inc
View source
<?php

/**
 * Notify button for a message instance.
 */
class message_notify_ui_notify_button extends views_handler_field_entity {
  function render($values) {
    $message = message_load($values->mid);
    if (user_access('send message notify')) {
      return l(t('Notify'), 'message/' . $message->mid . '/notify');
    }
  }

}

Classes

Namesort descending Description
message_notify_ui_notify_button Notify button for a message instance.