You are here

function calendar_systems_schema in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar_systems.install \calendar_systems_schema()
  2. 6 calendar_systems.install \calendar_systems_schema()
  3. 7.3 calendar_systems.install \calendar_systems_schema()
  4. 7 calendar_systems.install \calendar_systems_schema()
  5. 7.2 calendar_systems.install \calendar_systems_schema()

Implementation of hook_schema().

File

./calendar_systems.install, line 6

Code

function calendar_systems_schema() {
  $schema = array();
  $schema['calendar_systems'] = array(
    'description' => t('Stores calendar_systems profiles.'),
    'fields' => array(
      'language' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'calendar_system' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'settings' => array(
        'type' => 'text',
        'size' => 'normal',
      ),
    ),
    'primary key' => array(
      'language',
    ),
  );
  return $schema;
}