5 * Implementation of hook_schema().
7 function panels_schema() {
8 // This should always point to our 'current' schema. This makes it relatively easy
9 // to keep a record of schema as we make changes to it.
10 return panels_schema_1();
14 * Schema version 1 for Panels in D6.
16 function panels_schema_1() {
19 $schema['panels_display'] = array(
29 'layout_settings' => array(
33 'panel_settings' => array(
44 'hide_title' => array(
49 'primary key' => array('did'),
52 $schema['panels_pane'] = array(
84 'visibility' => array(
88 'configuration' => array(
101 'primary key' => array('pid'),
103 'did_idx' => array('did')
107 $schema['panels_object_cache'] = array(
124 'timestamp' => array(
129 'idx' => array('sid', 'obj', 'did'),
130 'time_idx' => array('timestamp')
137 * Implementation of hook_install().
139 function panels_install() {
140 db_query("UPDATE {system} SET weight = 10 WHERE name = 'panels'");
141 drupal_set_message(st('Please keep in mind that this is an Alpha release of Panels for Drupal 6, and is NOT intended for use on production sites.'));
142 drupal_set_message(st('Additionally, the upgrade path from Drupal 5 has NOT been resolved, and should not be attempted.'));
143 drupal_set_message(st('Bug reports are encouraged, especially when they come with patches! The <a href="@link">Panels project page</a> has details on filing issues.', array('@link' => 'http://drupal.org/project/panels')));
144 drupal_install_schema('panels');
148 * Implementation of hook_uninstall().
150 function panels_uninstall() {
151 drupal_uninstall_schema('panels');