function nodequeue_handler_field_links::render in Nodequeue 7.2
Same name and namespace in other branches
- 6.2 includes/views/nodequeue_handler_field_links.inc \nodequeue_handler_field_links::render()
- 7.3 includes/views/nodequeue_handler_field_links.inc \nodequeue_handler_field_links::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field_node_link::render
File
- includes/
views/ nodequeue_handler_field_links.inc, line 8 - Views field handler for the nodequeue queue links
Class
- nodequeue_handler_field_links
- @file Views field handler for the nodequeue queue links
Code
function render($values) {
if (user_access('manipulate queues') || user_access('manipulate all queues')) {
$nid = isset($this->aliases['nid']) ? $values->{$this->aliases['nid']} : $values->nid;
return theme('links', array(
'links' => nodequeue_node_links(node_load($nid)),
));
}
}