function views_plugin_style_xml::option_definition in Views Datasource 6
Same name and namespace in other branches
- 7 views/plugins/views_plugin_style_xml.inc \views_plugin_style_xml::option_definition()
Implementation of views_plugin_style::option_definition
File
- ./
views_plugin_style_xml.inc, line 17 - Implementation of views_plugin_style for views_xml
Class
- views_plugin_style_xml
- Implementation of views_plugin_style
Code
function option_definition() {
global $user;
$options = parent::option_definition();
$options['schema'] = array(
'default' => 'raw',
'translatable' => FALSE,
);
$options['root_element'] = array(
'default' => 'node',
'translatable' => FALSE,
);
$options['top_child_object'] = array(
'default' => 'node',
'translatable' => FALSE,
);
$options['field_output'] = array(
'default' => 'normal',
'translatable' => FALSE,
);
$options['plaintext_output'] = array(
'default' => TRUE,
'translatable' => FALSE,
);
/*$options['skip_empty_fields'] = array('default' => TRUE, 'translatable' => FALSE);*/
$options['element_output'] = array(
'default' => 'nested',
'translatable' => FALSE,
);
$options['escape_as_CDATA'] = array(
'default' => 'no',
'translatable' => FALSE,
);
$options['fallback_empty_label'] = array(
'default' => 'field',
'translatable' => FALSE,
);
$options['content_type'] = array(
'default' => 'text/xml',
'translatable' => FALSE,
);
$options['header'] = array(
'default' => NULL,
'translatable' => FALSE,
);
$options['author'] = array(
'default' => $user->name,
'translatable' => FALSE,
);
$options['using_views_api_mode'] = array(
'default' => FALSE,
'translatable' => FALSE,
);
//$options['action_on_missing_field'] = array('default' => 'none', 'translatable' => FALSE);
return $options;
}