public function bat_event_handler_event_operations_field::render in Booking and Availability Management Tools for Drupal 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
bat_event/ views/ bat_event_handler_event_operations_field.inc, line 34 - This field handler aggregates operations that can be done on a event under a single field providing a more flexible way to present them in a view
Class
Code
public function render($values) {
$links = menu_contextual_links('bat_event', 'admin/bat/events/event', array(
$this
->get_value($values, 'event_id'),
));
if (!empty($links)) {
return theme('links', array(
'links' => $links,
'attributes' => array(
'class' => array(
'links',
'inline',
'operations',
),
),
));
}
}