function domain_entity_field_schema in Domain Access Entity 7
Implements hook_field_schema().
File
- ./
domain_entity.install, line 10 - Domain Access Entity install function
Code
function domain_entity_field_schema($field) {
if ($field['type'] == 'domain_entity') {
return array(
'columns' => array(
'domain_id' => array(
'description' => 'The numeric unique ID of the domain.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'domain_source' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => FALSE,
'default' => 0,
'description' => 'A boolean indicating whether this domain_id is the canonical domain',
),
),
'indexes' => array(
'domain_id' => array(
'domain_id',
),
),
);
}
}