function dynamic_background_user_schema in Dynamic Background 7
Same name and namespace in other branches
- 6 modules/dynamic_background_user/dynamic_background_user.install \dynamic_background_user_schema()
Implementation of hook_schema(), which create the dynamic background table used to store information about user selection of images.
File
- modules/
dynamic_background_user/ dynamic_background_user.install, line 13 - Installes the database scheme and handles install and uninstall of the module.
Code
function dynamic_background_user_schema() {
$schema = array();
$schema['dynamic_background_user'] = array(
'description' => t('Stores information about dynamic backgrounds for each user'),
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'data' => array(
'type' => 'text',
'not null' => TRUE,
),
),
'indexes' => array(
'uid' => array(
'uid',
),
),
);
return $schema;
}