function themekey_ui_schema in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_ui.install \themekey_ui_schema()
- 6.2 themekey_ui.install \themekey_ui_schema()
- 6.3 themekey_ui.install \themekey_ui_schema()
- 7 themekey_ui.install \themekey_ui_schema()
- 7.2 themekey_ui.install \themekey_ui_schema()
Implements hook_schema().
File
- ./
themekey_ui.install, line 16 - Database schema of
Code
function themekey_ui_schema() {
$schema = array();
$schema['themekey_ui_node_theme'] = array(
'fields' => array(
'nid' => array(
'description' => 'The {node} this version belongs to.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'vid' => array(
'description' => 'The primary identifier for this version.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'theme' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'nid',
'vid',
),
);
$schema['themekey_ui_author_theme'] = array(
'fields' => array(
'uid' => array(
'description' => 'The user id.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'theme' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}