You are here

function content_handler_field::option_definition in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6.2 includes/views/handlers/content_handler_field.inc \content_handler_field::option_definition()
1 call to content_handler_field::option_definition()
content_handler_field_multiple::option_definition in includes/views/handlers/content_handler_field_multiple.inc
1 method overrides content_handler_field::option_definition()
content_handler_field_multiple::option_definition in includes/views/handlers/content_handler_field_multiple.inc

File

includes/views/handlers/content_handler_field.inc, line 33
The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Class

content_handler_field
@file The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Code

function option_definition() {
  $options = parent::option_definition();
  $field = $this->content_field;

  // Override views_handler_field_node's default label
  $options['label'] = array(
    'default' => '',
    'translatable' => TRUE,
  );
  $options['label_type'] = array(
    'default' => 'widget',
  );
  $options['format'] = array(
    'default' => 'default',
  );
  return $options;
}