$GLOBALS['db_type'])), 'error'); break; } } /** * Implement hook_uninstall(). * * - Drop all the tables maintained by the module * - qbf_queries * - Remove nodes of all the types maintained by the module * - none * - Remove module settings * - none * - Do NOT remove module schema version from {system} * * @return void */ function qbf_uninstall() { switch ($GLOBALS['db_type']) { case 'mysql': case 'mysqli': case 'pgsql': db_query("DROP TABLE {qbf_queries}"); break; default: drupal_set_message(t('Unsupported database backend for QBF module: @db', array('@db' => $GLOBALS['db_type'])), 'error'); break; } } /** * Implement hook_update_N(). * * For now, just define a proper initial schema version. * * @return array */ function qbf_update_5000() { return array(); }