function panels_schema_3 in Panels 7.3
Same name and namespace in other branches
- 6.3 panels.install \panels_schema_3()
Schema from the D6 version.
2 calls to panels_schema_3()
- panels_schema_4 in ./
panels.install - panels_update_7300 in ./
panels.install - Change panels_display.layout to match the size of panels_layout.name.
File
- ./
panels.install, line 171
Code
function panels_schema_3() {
// Schema 3 is now locked. If you need to make changes, please create
// schema 4 and add them.
$schema = array();
$schema['panels_display'] = array(
'export' => array(
'object' => 'panels_display',
'bulk export' => FALSE,
'export callback' => 'panels_export_display',
'can disable' => FALSE,
'identifier' => 'display',
),
'fields' => array(
'did' => array(
'type' => 'serial',
'not null' => TRUE,
'no export' => TRUE,
),
'layout' => array(
'type' => 'varchar',
'length' => '255',
'default' => '',
),
'layout_settings' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'panel_settings' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'cache' => array(
'type' => 'text',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'title' => array(
'type' => 'varchar',
'length' => '255',
'default' => '',
),
'hide_title' => array(
'type' => 'int',
'size' => 'tiny',
'default' => 0,
'no export' => TRUE,
),
'title_pane' => array(
'type' => 'int',
'default' => 0,
'no export' => TRUE,
),
),
'primary key' => array(
'did',
),
);
$schema['panels_pane'] = array(
'export' => array(
'can disable' => FALSE,
'identifier' => 'pane',
'bulk export' => FALSE,
),
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'did' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'no export' => TRUE,
),
'panel' => array(
'type' => 'varchar',
'length' => '32',
'default' => '',
),
'type' => array(
'type' => 'varchar',
'length' => '32',
'default' => '',
),
'subtype' => array(
'type' => 'varchar',
'length' => '64',
'default' => '',
),
'shown' => array(
'type' => 'int',
'size' => 'tiny',
'default' => 1,
),
'access' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'configuration' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'cache' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'style' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'css' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'extras' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial' => array(),
),
'position' => array(
'type' => 'int',
'size' => 'small',
'default' => 0,
),
),
'primary key' => array(
'pid',
),
'indexes' => array(
'did_idx' => array(
'did',
),
),
);
$schema['panels_renderer_pipeline'] = array(
'description' => 'Contains renderer pipelines for Panels. Each pipeline contains one or more renderers and access rules to select which renderer gets used.',
'export' => array(
'identifier' => 'pipeline',
'bulk export' => TRUE,
'primary key' => 'rpid',
'api' => array(
'owner' => 'panels',
'api' => 'pipelines',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'rpid' => array(
'type' => 'serial',
'description' => 'A database primary key to ensure uniqueness.',
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Unique ID for this content. Used to identify it programmatically.',
),
'admin_title' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Administrative title for this pipeline.',
),
'admin_description' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Administrative description for this pipeline.',
'object default' => '',
),
'weight' => array(
'type' => 'int',
'size' => 'small',
'default' => 0,
),
'settings' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized settings for the actual pipeline. The contents of this field are up to the plugin that uses it.',
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array(
'rpid',
),
);
$schema['panels_layout'] = array(
'description' => 'Contains exportable customized layouts for this site.',
'export' => array(
'identifier' => 'layout',
'bulk export' => TRUE,
'primary key' => 'lid',
'api' => array(
'owner' => 'panels',
'api' => 'layouts',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'lid' => array(
'type' => 'serial',
'description' => 'A database primary key to ensure uniqueness.',
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Unique ID for this content. Used to identify it programmatically.',
),
'admin_title' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Administrative title for this layout.',
),
'admin_description' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Administrative description for this layout.',
'object default' => '',
),
'category' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Administrative category for this layout.',
),
'plugin' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'The layout plugin that owns this layout.',
),
'settings' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized settings for the actual layout. The contents of this field are up to the plugin that uses it.',
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array(
'lid',
),
);
return $schema;
}