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