$default->locale, 'name' => $default->name, 'native' => '', 'direction' => 0, 'enabled' => 1, 'plurals' => $default->plurals, 'formula' => $default->formula, 'domain' => '', 'prefix' => $default->locale, 'weight' => 0)); $ret[] = update_sql("DROP TABLE {locales_meta}"); return $ret; } /** * Add multiple text group support to allow for user defined string translation. */ function locale_update_6002() { $ret = array(); switch ($GLOBALS['db_type']) { case 'mysql': case 'mysqli': $ret[] = update_sql("ALTER TABLE {locales_source} ADD textgroup varchar(255) NOT NULL default ''"); break; case 'pgsql': db_add_column($ret, 'locales_source', 'textgroup', 'varchar(255)', array('default' => "''", 'not null' => TRUE)); break; } return $ret; } /** * @} End of "defgroup updates-5.x-to-6.x" */ /** * Implementation of hook_uninstall(). */ function locale_uninstall() { // Remove tables. drupal_uninstall_schema('locale'); }