[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/views/plugins/ -> views_plugin_style_summary_unformatted.inc (source)

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7