You are here

function views_plugin_style_xhtml::option_definition in Views Datasource 7

Same name and namespace in other branches
  1. 6 views_plugin_style_xhtml.inc \views_plugin_style_xhtml::option_definition()

Set default options

Overrides views_plugin_style::option_definition

File

views/plugins/views_plugin_style_xhtml.inc, line 14
Implements views_plugin_style for views_xhtml

Class

views_plugin_style_xhtml
Implements views_plugin_style

Code

function option_definition() {
  $options = parent::option_definition();
  $author_default = isset($GLOBALS['user']->name) ? $GLOBALS['user']->name : variable_get('anonymous', t('Anonymous'));
  $options['format'] = array(
    'default' => 'hcard',
    '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['escape_as_CDATA'] = array(
    'default' => 'no',
    'translatable' => FALSE,
  );
  $options['content_type'] = array(
    'default' => 'text/xhtml',
    'translatable' => FALSE,
  );
  $options['header'] = array(
    'default' => NULL,
    'translatable' => FALSE,
  );
  $options['author'] = array(
    'default' => $author_default,
    'translatable' => FALSE,
  );
  $options['using_views_api_mode'] = array(
    'default' => FALSE,
    'translatable' => FALSE,
  );

  //$options['action_on_missing_field'] = array('default' => 'none', 'translatable' => FALSE);
  return $options;
}