function message_ui_delete_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_delete_button.inc, line 8
Class
- message_ui_delete_button
- Delete button for a message instance.
Code
function render($values) {
$message = message_load($values->mid);
if (message_ui_access_control('delete', $message)) {
return l(t('Delete'), 'message/' . $message->mid . '/delete');
}
}