function views_plugin_style::uses_fields

Return TRUE if this style also uses fields.

Return value

bool

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 98

Class

views_plugin_style
Base class to define a style plugin handler.

Code

public function uses_fields() {
    // If we use a row plugin, ask the row plugin. Chances are, we don't
    // care, it does.
    $row_uses_fields = FALSE;
    if ($this->uses_row_plugin() && !empty($this->row_plugin)) {
        $row_uses_fields = $this->row_plugin
            ->uses_fields();
    }
    // Otherwise, check the definition or the option.
    return $row_uses_fields || !empty($this->definition['uses fields']) || !empty($this->options['uses_fields']);
}