You are here

public static function EntityFieldHandlerHelper::option_definition in Entity API 7

Provide appropriate default options for a handler.

8 calls to EntityFieldHandlerHelper::option_definition()
entity_views_handler_field_boolean::option_definition in views/handlers/entity_views_handler_field_boolean.inc
Provide options for this handler.
entity_views_handler_field_date::option_definition in views/handlers/entity_views_handler_field_date.inc
Provide options for this handler.
entity_views_handler_field_duration::option_definition in views/handlers/entity_views_handler_field_duration.inc
Information about options for all kinds of purposes will be held here.
entity_views_handler_field_entity::option_definition in views/handlers/entity_views_handler_field_entity.inc
Information about options for all kinds of purposes will be held here.
entity_views_handler_field_numeric::option_definition in views/handlers/entity_views_handler_field_numeric.inc
Provide options for this handler.

... See full list

File

views/handlers/entity_views_field_handler_helper.inc, line 20
Contains the EntityFieldHandlerHelper class.

Class

EntityFieldHandlerHelper
Helper class containing static implementations of common field handler methods.

Code

public static function option_definition($handler) {
  if (isset($handler->definition['type']) && entity_property_list_extract_type($handler->definition['type'])) {
    $options['list']['contains']['mode'] = array(
      'default' => 'collapse',
    );
    $options['list']['contains']['separator'] = array(
      'default' => ', ',
    );
    $options['list']['contains']['type'] = array(
      'default' => 'ul',
    );
  }
  $options['link_to_entity'] = array(
    'default' => FALSE,
  );
  return $options;
}