function message_ui_view_button::render in Message UI 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
handlers/ message_ui_view_button.inc, line 8
Class
- message_ui_view_button
- Delete button for a message instance.
Code
function render($values) {
$message = message_load($values->mid);
if (message_ui_access_control('view', $message)) {
return l(t('View'), 'message/' . $message->mid);
}
}