You are here

function registration_field_schema in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.install \registration_field_schema()
  2. 7 registration.install \registration_field_schema()

Implements hook_field_schema().

File

./registration.install, line 394
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,
  );
}