You are here

function pollim_handler_pollim_operations_field::render in Poll Improved 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/pollim_handler_pollim_operations_field.inc, line 19

Class

pollim_handler_pollim_operations_field
This field handler aggregates operations that can be done on a pollim under a single field providing a more flexible way to present them in a view

Code

function render($values) {
  $links = menu_contextual_links('pollim', 'admin/content/pollims/pollim', array(
    $this
      ->get_value($values, 'pollim_id'),
  ));
  if (!empty($links)) {
    return theme('links', array(
      'links' => $links,
      'attributes' => array(
        'class' => array(
          'links',
          'inline',
          'operations',
        ),
      ),
    ));
  }
}