function registration_field_schema in Entity Registration 8.2
Same name and namespace in other branches
- 7.2 registration.install \registration_field_schema()
- 7 registration.install \registration_field_schema()
Implements hook_field_schema().
File
- ./
registration.install, line 383 - Schema and installation hooks for registration module.
Code
function registration_field_schema($field) {
$columns = array(
'registration_type' => array(
'type' => 'varchar',
'length' => 32,
'not null' => FALSE,
),
);
$indexes = array(
'registration_type' => array(
'registration_type',
),
);
$foreign_keys = array(
'registration_type' => array(
'table' => 'registration_type',
'columns' => array(
'registration_type' => 'name',
),
),
);
return array(
'columns' => $columns,
'indexes' => $indexes,
'foreign keys' => $foreign_keys,
);
}