You are here

function views_plugin_style::uses_fields in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_style.inc \views_plugin_style::uses_fields()
  2. 7.3 plugins/views_plugin_style.inc \views_plugin_style::uses_fields()

Return TRUE if this style also uses fields.

2 calls to views_plugin_style::uses_fields()
views_plugin_style::options_form in plugins/views_plugin_style.inc
Provide a form to edit options for this plugin.
views_plugin_style::render_fields in plugins/views_plugin_style.inc
Render all of the fields for a given style and store them on the object.

File

plugins/views_plugin_style.inc, line 68

Class

views_plugin_style
Base class to define a style plugin handler.

Code

function uses_fields() {

  // If we use a row plugin, ask the row plugin. Chances are, we don't
  // care, it does.
  if ($this
    ->uses_row_plugin() && !empty($this->row_plugin)) {
    return $this->row_plugin
      ->uses_fields();
  }

  // Otherwise, maybe we do.
  return !empty($this->definition['uses fields']);
}