You are here

public function EROptionsBehavior::schema_alter in Bricks​ 7.4

Same name and namespace in other branches
  1. 7.5 plugins/behavior/EROptionsBehavior.class.php \EROptionsBehavior::schema_alter()

Alter the field schema.

Overrides EntityReference_BehaviorHandler_Abstract::schema_alter

See also

hook_field_schema()

File

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

Class

EROptionsBehavior

Code

public function schema_alter(&$schema, $field) {
  $schema['columns']['options'] = array(
    'type' => 'blob',
    'size' => 'big',
    'description' => 'Serialized data containing the target entity view options.',
  );
}