You are here

public function farm_area_handler_field_details::render in farmOS 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/farm/farm_area/views/handlers/farm_area_handler_field_details.inc, line 41
Field handler to present farm area links.

Class

farm_area_handler_field_details
Field handler to present farm area details.

Code

public function render($values) {

  // Load the term id value.
  $aid = $this
    ->get_value($values, 'tid');

  // Generate a simple empty DIV that will be populated via the Javascript.
  $output = '<div class="area-details" id="area-details-' . $aid . '"></div>';

  // Return the details.
  return $output;
}