t('The quicktabs table.'), 'fields' => array( 'qtid' => array( 'description' => t('The primary identifier for a qt block.'), 'type' => 'serial', 'unsigned' => TRUE, 'size' => 'big', 'not null' => TRUE, 'disp-width' => '20'), 'title' => array( 'description' => t('The title of this quicktabs block.'), 'type' => 'varchar', 'length' => '255', 'not null' => TRUE), 'tabs' => array( 'description' => t('A serialized array of the contents of this qt block.'), 'type' => 'text', 'size' => 'medium', 'not null' => TRUE) ), 'primary key' => array('qtid'), ); return $schema; } function quicktabs_install() { drupal_install_schema('quicktabs'); } function quicktabs_uninstall() { drupal_uninstall_schema('quicktabs'); // Delete any variables that have been set. $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'quicktabs_%'"); while ($row = db_fetch_object($result)) { variable_del($row->name); } }