function semanticviews_plugin_style_default::option_definition in Semantic Views 6
Same name and namespace in other branches
- 7 semanticviews_plugin_style_default.inc \semanticviews_plugin_style_default::option_definition()
Set default options
File
- ./
semanticviews_plugin_style_default.inc, line 17 - Contains the default style plugin.
Class
- semanticviews_plugin_style_default
- Default style plugin to render rows one after another with no decorations.
Code
function option_definition() {
$options = parent::option_definition();
// Group option definition.
$options['group'] = array(
'contains' => array(
'element_type' => array(
'default' => 'h3',
),
'class' => array(
'default' => 'title',
),
),
);
// List option definition.
$options['list'] = array(
'contains' => array(
'element_type' => array(
'default' => '',
),
'class' => array(
'default' => '',
),
),
);
// Row option definition.
$options['row'] = array(
'contains' => array(
'element_type' => array(
'default' => 'div',
),
'class' => array(
'default' => '',
),
'first_class' => array(
'default' => 'first',
),
'last_class' => array(
'default' => 'last',
),
'last_every_nth' => array(
'default' => '0',
),
'striping_classes' => array(
'default' => 'odd even',
),
),
);
return $options;
}