You are here

function delta_schema in Delta 7.3

Same name and namespace in other branches
  1. 6 delta.install \delta_schema()
  2. 7 delta.install \delta_schema()
  3. 7.2 delta.install \delta_schema()

Implementats hook_schema().

File

./delta.install, line 11
Contains install, update, and uninstall functions for Skinr.

Code

function delta_schema() {
  $schema['delta'] = array(
    'description' => t('Stores theme-settings templates that allow overriding the theme settings used based on various contexts.'),
    'export' => array(
      'key' => 'machine_name',
      'key name' => 'name',
      'primary key' => 'machine_name',
      'identifier' => 'delta',
      'default hook' => 'delta_default_templates',
      'status' => 'delta_status',
      'api' => array(
        'owner' => 'delta',
        'api' => 'delta',
        'minimum_version' => 3,
        'current_version' => 3,
      ),
      'export callback' => 'delta_export',
    ),
    'fields' => array(
      'machine_name' => array(
        'description' => 'The system name of this theme settings template.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
      'name' => array(
        'description' => 'The friendly name of this theme settings template.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'description' => array(
        'description' => 'A brief description of this theme settings template.',
        'type' => 'text',
        'size' => 'medium',
        'not null' => TRUE,
      ),
      'theme' => array(
        'description' => 'The theme for which this theme settings template is relevant.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'mode' => array(
        'description' => 'The mode that this template operrates in.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
      'parent' => array(
        'description' => 'The system name of the parent of this theme settings template.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
      'settings' => array(
        'description' => 'Serialized data which is a copy of the theme settings array stored in the system table based on these overrides',
        'type' => 'blob',
        'size' => 'big',
        'not null' => FALSE,
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'machine_name',
    ),
  );
  return $schema;
}