function message_ui_edit_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_edit_button.inc, line 8
Class
- message_ui_edit_button
- Edit button for a message instance.
Code
function render($values) {
$message = message_load($values->mid);
if (message_ui_access_control('edit', $message)) {
return l(t('Edit'), 'message/' . $message->mid . '/edit');
}
}