function views_handler_field::option_definition

cis7 views_handler_field.inc views_handler_field::option_definition()
cle7 views_handler_field.inc views_handler_field::option_definition()
elmsmedia7 views_handler_field.inc views_handler_field::option_definition()
icor7 views_handler_field.inc views_handler_field::option_definition()
meedjum_blog7 views_handler_field.inc views_handler_field::option_definition()
mooc7 views_handler_field.inc views_handler_field::option_definition()

Information about options for all kinds of purposes will be held here. @code 'option_name' => array(

  • 'default' => default value,
  • 'translatable' => (optional) TRUE/FALSE (wrap in t() on export if true),
  • 'contains' => (optional) array of items this contains, with its own defaults, etc. If contains is set, the default will be ignored and assumed to be array().
  • 'bool' => (optional) TRUE/FALSE Is the value a boolean value. This will change the export format to TRUE/FALSE instead of 1/0.
  • 'export' => (optional) FALSE or a callback for special export handling if necessary.
  • 'unpack_translatable' => (optional) callback for special handling for translating data within the option, if necessary.

),

Return value

array Returns the options of this handler/plugin.

Overrides views_handler::option_definition

See also

views_object::export_option()

views_object::export_option_always()

views_object::unpack_translatable()

39 methods override views_handler_field::option_definition()
entity_views_handler_field_duration::option_definition in sites/all/modules/ulmus/entity/views/handlers/entity_views_handler_field_duration.inc
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
entity_views_handler_field_entity::option_definition in sites/all/modules/ulmus/entity/views/handlers/entity_views_handler_field_entity.inc
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
entity_views_handler_field_options::option_definition in sites/all/modules/ulmus/entity/views/handlers/entity_views_handler_field_options.inc
Specifies the options this handler uses.
entity_views_handler_field_text::option_definition in sites/all/modules/ulmus/entity/views/handlers/entity_views_handler_field_text.inc
Provide options for this handler.
og_handler_field_og_membership_link_delete::option_definition in sites/all/modules/ulmus/og/includes/views/handlers/og_handler_field_og_membership_link_delete.inc
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(

... See full list

File

sites/all/modules/ulmus/views/handlers/views_handler_field.inc, line 392
@todo.

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

function option_definition() {
  $options = parent::option_definition();

  $options['label'] = array(
    'default' => $this->definition['title'],
    'translatable' => TRUE,
  );
  $options['exclude'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['alter'] = array(
    'contains' => array(
      'alter_text' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'text' => array(
        'default' => '',
        'translatable' => TRUE,
      ),
      'make_link' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'path' => array('default' => ''),
      'absolute' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'external' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'replace_spaces' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'path_case' => array(
        'default' => 'none',
        'translatable' => FALSE,
      ),
      'trim_whitespace' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'alt' => array(
        'default' => '',
        'translatable' => TRUE,
      ),
      'rel' => array('default' => ''),
      'link_class' => array('default' => ''),
      'prefix' => array(
        'default' => '',
        'translatable' => TRUE,
      ),
      'suffix' => array(
        'default' => '',
        'translatable' => TRUE,
      ),
      'target' => array('default' => ''),
      'nl2br' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'max_length' => array('default' => ''),
      'word_boundary' => array(
        'default' => TRUE,
        'bool' => TRUE,
      ),
      'ellipsis' => array(
        'default' => TRUE,
        'bool' => TRUE,
      ),
      'more_link' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'more_link_text' => array(
        'default' => '',
        'translatable' => TRUE,
      ),
      'more_link_path' => array('default' => ''),
      'strip_tags' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'trim' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'preserve_tags' => array('default' => ''),
      'html' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
    ),
  );
  $options['element_type'] = array('default' => '');
  $options['element_class'] = array('default' => '');

  $options['element_label_type'] = array('default' => '');
  $options['element_label_class'] = array('default' => '');
  $options['element_label_colon'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );

  $options['element_wrapper_type'] = array('default' => '');
  $options['element_wrapper_class'] = array('default' => '');

  $options['element_default_classes'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );

  $options['empty'] = array(
    'default' => '',
    'translatable' => TRUE,
  );
  $options['hide_empty'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['empty_zero'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['hide_alter_empty'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );

  return $options;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.