array( 'object' => 'panels_display', 'can disable' => FALSE, 'identifier' => 'display', ), 'fields' => array( 'did' => array( 'type' => 'serial', 'not null' => TRUE, 'no export' => TRUE, ), 'layout' => array( 'type' => 'varchar', 'length' => '32', 'default' => '', ), 'layout_settings' => array( 'type' => 'text', 'size' => 'big', 'serialize' => TRUE, 'object default' => array(), ), 'panel_settings' => array( 'type' => 'text', 'size' => 'big', 'serialize' => TRUE, 'object default' => array(), ), 'cache' => array( 'type' => 'text', 'serialize' => TRUE, 'object default' => array(), ), 'title' => array( 'type' => 'varchar', 'length' => '255', 'default' => '', ), 'hide_title' => array( 'type' => 'int', 'size' => 'tiny', 'default' => 0, ), ), 'primary key' => array('did'), ); $schema['panels_pane'] = array( 'export' => array( 'can disable' => FALSE, 'identifier' => 'pane', ), 'fields' => array( 'pid' => array( 'type' => 'serial', 'not null' => TRUE, ), 'did' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), '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(), ), 'visibility' => array( 'type' => 'text', 'size' => 'big', 'serialize' => TRUE, 'object default' => array(), ), 'configuration' => array( 'type' => 'text', 'size' => 'big', 'serialize' => TRUE, 'object default' => array(), ), 'cache' => array( 'type' => 'text', 'size' => 'big', 'serialize' => TRUE, 'object default' => array(), ), 'position' => array( 'type' => 'int', 'size' => 'small', 'default' => 0, ), ), 'primary key' => array('pid'), 'indexes' => array( 'did_idx' => array('did') ), ); return $schema; } /** * Implementation of hook_install(). */ function panels_install() { db_query("UPDATE {system} SET weight = 10 WHERE name = 'panels'"); 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.')); drupal_set_message(st('Additionally, the upgrade path from Drupal 5 has NOT been resolved, and should not be attempted.')); drupal_set_message(st('Bug reports are encouraged, especially when they come with patches! The Panels project page has details on filing issues.', array('@link' => 'http://drupal.org/project/panels'))); drupal_install_schema('panels'); } /** * Implementation of hook_uninstall(). */ function panels_uninstall() { drupal_uninstall_schema('panels'); } /* function panels_update_6003() { // Update size of pane 'access' field. // update contents of pane 'access' field. // Remove panels_object_cache table // update pid and did to be serial } */