views_plugin_style_summary_unformatted.inc

  1. 3.x plugins/views_plugin_style_summary_unformatted.inc
  2. 2.x plugins/views_plugin_style_summary_unformatted.inc

Contains the unformatted summary style plugin.

File

plugins/views_plugin_style_summary_unformatted.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains the unformatted summary style plugin.
  5. */
  6. /**
  7. * The default style plugin for summaries.
  8. *
  9. * @ingroup views_style_plugins
  10. */
  11. class views_plugin_style_summary_unformatted extends views_plugin_style_summary {
  12. function option_definition() {
  13. $options = parent::option_definition();
  14. $options['inline'] = array('default' => FALSE, 'bool' => TRUE);
  15. $options['separator'] = array('default' => '');
  16. return $options;
  17. }
  18. function options_form(&$form, &$form_state) {
  19. parent::options_form($form, $form_state);
  20. $form['inline'] = array(
  21. '#type' => 'checkbox',
  22. '#default_value' => !empty($this->options['inline']),
  23. '#title' => t('Display items inline'),
  24. );
  25. $form['separator'] = array(
  26. '#type' => 'textfield',
  27. '#title' => t('Separator'),
  28. '#default_value' => $this->options['separator'],
  29. );
  30. }
  31. }