You are here

public function ERViewModeBehavior::schema_alter in Entity reference viewmode selector 7

Alter the field schema.

Overrides EntityReference_BehaviorHandler_Abstract::schema_alter

See also

hook_field_schema()

File

plugins/behavior/ERViewModeBehavior.class.php, line 5

Class

ERViewModeBehavior

Code

public function schema_alter(&$schema, $field) {
  $schema['columns']['view_mode'] = array(
    'description' => 'Target view mode machine name.',
    'type' => 'varchar',
    'length' => 32,
    'default' => 'full',
    'not null' => FALSE,
  );
}