You are here

function view::render_field in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/view.inc \view::render_field()
  2. 7.3 includes/view.inc \view::render_field()

Render a specific field via the field ID and the row #.

File

includes/view.inc, line 936
view.inc Provides the view object type and associated methods.

Class

view
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Code

function render_field($field, $row) {
  if (isset($this->field[$field]) && isset($this->result[$row])) {
    return $this->field[$field]
      ->advanced_render($this->result[$row]);
  }
}