You are here

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

Same name and namespace in other branches
  1. 6.2 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.

3 calls to views_plugin_style::uses_fields()
views_plugin_style::get_row_class in plugins/views_plugin_style.inc
Return the token replaced row class for the specified row.
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 88

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']);
}