public function TreeableBehavior::schema_alter in Bricks 7.5
Alter the field schema.
Overrides EntityReference_BehaviorHandler_Abstract::schema_alter
See also
File
- plugins/
behavior/ TreeableBehavior.class.php, line 4
Class
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',
);
}