You are here

function hook_eck_property_type_schema_alter in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.api.php \hook_eck_property_type_schema_alter()

Give the schema for your custom properties.

Parameters

array $schema: A field schema definition.

string $type: A string.

File

./eck.api.php, line 224
ECK's API documentation.

Code

function hook_eck_property_type_schema_alter(&$schema, $type) {
  if ($type == 'email') {
    $schema = array(
      'description' => 'An email',
      'type' => 'varchar',
      'length' => 256,
      'not null' => TRUE,
      'default' => '',
    );
  }
}