views_plugin_style_summary_unformatted.inc

Definition of views_plugin_style_summary_unformatted.

File

plugins/views_plugin_style_summary_unformatted.inc

View source
<?php


/**
 * @file
 * Definition of views_plugin_style_summary_unformatted.
 */

/**
 * The default style plugin for summaries.
 *
 * @ingroup views_style_plugins
 */
class views_plugin_style_summary_unformatted extends views_plugin_style_summary {
    
    /**
     * {@inheritdoc}
     */
    public function option_definition() {
        $options = parent::option_definition();
        $options['inline'] = array(
            'default' => FALSE,
            'bool' => TRUE,
        );
        $options['separator'] = array(
            'default' => '',
        );
        return $options;
    }
    
    /**
     * {@inheritdoc}
     */
    public function options_form(&$form, &$form_state) {
        parent::options_form($form, $form_state);
        $form['inline'] = array(
            '#type' => 'checkbox',
            '#default_value' => !empty($this->options['inline']),
            '#title' => t('Display items inline'),
        );
        $form['separator'] = array(
            '#type' => 'textfield',
            '#title' => t('Separator'),
            '#default_value' => $this->options['separator'],
        );
    }

}

Classes

Title Deprecated Summary
views_plugin_style_summary_unformatted The default style plugin for summaries.