public function SchemaForm::__construct in Entity Construction Kit (ECK) 7.3
SchemaForm constructor.
Parameters
array $default_schema: A schema array as it is typical in drupal.
array $locked_properties: A list of properties in the schema that are not up to change.
File
- ./
eck.schema.inc, line 19 - A helper class to create schema forms
Class
- SchemaForm
- @file A helper class to create schema forms
Code
public function __construct($default_schema, $locked_properties = array()) {
// The type property is always locked.
$locked_properties['type'] = TRUE;
$this->lockedProperties = $locked_properties;
$this->defaultSchema = $default_schema;
}