function views_plugin_style::get_field in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_style.inc \views_plugin_style::get_field()
- 7.3 plugins/views_plugin_style.inc \views_plugin_style::get_field()
Get a rendered field.
Parameters
$index: The index count of the row.
$field: The id of the field.
2 calls to views_plugin_style::get_field()
- views_plugin_style::render_grouping in plugins/
views_plugin_style.inc - Group records as needed for rendering.
- views_plugin_style_jump_menu::render in plugins/
views_plugin_style_jump_menu.inc - Render the display in this style.
File
- plugins/
views_plugin_style.inc, line 235
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];
}
}