1.20.x views_plugin_style.inc views_plugin_style::get_field($index, $field)

Get a rendered field.

Parameters

$index: The index count of the row.

$field: The id of the field.

File

modules/views/plugins/views_plugin_style.inc, line 557
Definition of views_plugin_style.

Class

views_plugin_style
Base class to define a style plugin handler.

Code

function get_field($index, $field) {
  if (!isset($this->rendered_fields)) {
    $this->render_fields($this->view->result);
  }

  if (isset($this->rendered_fields[$index][$field])) {
    return $this->rendered_fields[$index][$field];
  }
}