function redirect_handler_field_redirect_link_edit::render in Redirect 7.2
Same name and namespace in other branches
- 7 views/redirect_handler_field_redirect_link_edit.inc \redirect_handler_field_redirect_link_edit::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
redirect_handler_field_redirect_link_edit.inc, line 34 - Redirect field handler for edit links.
Class
- redirect_handler_field_redirect_link_edit
- @file Redirect field handler for edit links.
Code
function render($values) {
$rid = $values->{$this->aliases['rid']};
if (($redirect = redirect_load($rid)) && redirect_access('update', $redirect)) {
$text = !empty($this->options['text']) ? $this->options['text'] : t('Edit');
return l($text, "admin/config/search/redirect/edit/" . $rid, array(
'query' => drupal_get_destination(),
));
}
}