You are here

public function TreeableBehavior::schema_alter in Bricks​ 7.5

Alter the field schema.

Overrides EntityReference_BehaviorHandler_Abstract::schema_alter

See also

hook_field_schema()

File

plugins/behavior/TreeableBehavior.class.php, line 4

Class

TreeableBehavior

Code

public function schema_alter(&$schema, $field) {
  $schema['columns']['depth'] = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
    'description' => 'The depth for this field item, used for multi-value fields stored as trees',
  );
}