1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Definition of views_plugin_style_summary_unformatted.
|
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
|
|
15
|
/**
|
16
|
* {@inheritdoc}
|
17
|
*/
|
18
|
public function option_definition() {
|
19
|
$options = parent::option_definition();
|
20
|
$options['inline'] = array('default' => FALSE, 'bool' => TRUE);
|
21
|
$options['separator'] = array('default' => '');
|
22
|
return $options;
|
23
|
}
|
24
|
|
25
|
/**
|
26
|
* {@inheritdoc}
|
27
|
*/
|
28
|
public function options_form(&$form, &$form_state) {
|
29
|
parent::options_form($form, $form_state);
|
30
|
$form['inline'] = array(
|
31
|
'#type' => 'checkbox',
|
32
|
'#default_value' => !empty($this->options['inline']),
|
33
|
'#title' => t('Display items inline'),
|
34
|
);
|
35
|
$form['separator'] = array(
|
36
|
'#type' => 'textfield',
|
37
|
'#title' => t('Separator'),
|
38
|
'#default_value' => $this->options['separator'],
|
39
|
);
|
40
|
}
|
41
|
|
42
|
}
|