You are here

function scald_views_handler_field_representation::option_definition in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 includes/scald_views_handler_field_representation.inc \scald_views_handler_field_representation::option_definition()

Add a default context to the option definition.

File

includes/scald_views_handler_field_representation.inc, line 19
Provides a field containing the representation of an atom, in a choosen context.

Class

scald_views_handler_field_representation
@file Provides a field containing the representation of an atom, in a choosen context.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['context'] = array(
    'default' => 'sdl_library_item',
  );
  return $options;
}