You are here

function dynamic_background_views_schema in Dynamic Background 7

Same name and namespace in other branches
  1. 6 modules/dynamic_background_views/dynamic_background_views.install \dynamic_background_views_schema()

Implementation of hook_schema(), which create the dynamic background table used to store information about user selection of images.

File

modules/dynamic_background_views/dynamic_background_views.install, line 13
Installes the database scheme and handles install and uninstall of the module.

Code

function dynamic_background_views_schema() {
  $schema = array();
  $schema['dynamic_background_views'] = array(
    'description' => t('Stores information about dynamic backgrounds for each view display'),
    'fields' => array(
      'view_id' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
      'data' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
  );
  return $schema;
}