You are here

function themekey_css_schema in ThemeKey 7.3

Implements hook_schema().

File

themekey_css/themekey_css.install, line 16
Database schema of

Code

function themekey_css_schema() {
  module_load_include('install', 'themekey');
  $themekey_schema = themekey_schema();
  $schema = array();
  $schema['themekey_css_rules'] = $themekey_schema['themekey_properties'];

  // Extend schema. Add css_group and css_weight columns.
  $schema['themekey_css_rules']['fields']['css_group'] = array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => 'CSS_DEFAULT',
  );
  $schema['themekey_css_rules']['fields']['css_weight'] = array(
    'type' => 'int',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 0,
  );
  return $schema;
}