Index: modules/user/user.install =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.install,v retrieving revision 1.13 diff -u -r1.13 user.install --- modules/user/user.install 20 Sep 2008 20:22:25 -0000 1.13 +++ modules/user/user.install 24 Sep 2008 19:06:39 -0000 @@ -2,6 +2,40 @@ // $Id: user.install,v 1.13 2008/09/20 20:22:25 webchick Exp $ /** + * Implementation of hook_install(). + */ +function user_install() { + // Inserting uid 0 here confuses MySQL -- the next user might be created as + // uid 2 which is not what we want. So we insert the first user here, the + // anonymous user. uid is 1 here for now, but very soon it will be changed + // to 0. + db_query("INSERT INTO {users} (name, mail) VALUES('%s', '%s')", '', ''); + // We need some placeholders here as name and mail are uniques and data is + // presumed to be a serialized array. Install will change uid 1 immediately + // anyways. So we insert the superuser here, the uid is 2 here for now, but + // very soon it will be changed to 1. + db_query("INSERT INTO {users} (name, mail, created, data) VALUES('%s', '%s', %d, '%s')", 'placeholder-for-uid-1', 'placeholder-for-uid-1', REQUEST_TIME, serialize(array())); + // This sets the above two users uid 0 (anonymous). We avoid an explicit 0 + // otherwise MySQL might insert the next auto_increment value. + db_query("UPDATE {users} SET uid = uid - uid WHERE name = '%s'", ''); + // This sets uid 1 (superuser). We skip uid 2 but that's not a big problem. + db_query("UPDATE {users} SET uid = 1 WHERE name = '%s'", 'placeholder-for-uid-1'); + + // Built-in roles. + db_query("INSERT INTO {role} (name) VALUES ('%s')", 'anonymous user'); + db_query("INSERT INTO {role} (name) VALUES ('%s')", 'authenticated user'); + + // Anonymous role permissions. + db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 1, 'access content'); + + // Authenticated role permissions. + db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'access comments'); + db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'access content'); + db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'post comments'); + db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'post comments without approval'); +} + +/** * Implementation of hook_schema(). */ function user_schema() { Index: modules/upload/upload.install =================================================================== RCS file: /cvs/drupal/drupal/modules/upload/upload.install,v retrieving revision 1.7 diff -u -r1.7 upload.install --- modules/upload/upload.install 10 Feb 2008 19:09:58 -0000 1.7 +++ modules/upload/upload.install 24 Sep 2008 19:06:39 -0000 @@ -2,26 +2,6 @@ // $Id: upload.install,v 1.7 2008/02/10 19:09:58 dries Exp $ /** - * Implementation of hook_install(). - */ -function upload_install() { - // Create table. The upload table might have been created in the Drupal 5 - // to Drupal 6 upgrade, and was migrated from the file_revisions table. So - // in this case, there is no need to create the table, it is already there. - if (!db_table_exists('upload')) { - drupal_install_schema('upload'); - } -} - -/** - * Implementation of hook_uninstall(). - */ -function upload_uninstall() { - // Remove tables. - drupal_uninstall_schema('upload'); -} - -/** * Implementation of hook_schema(). */ function upload_schema() { Index: includes/install.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/install.inc,v retrieving revision 1.70 diff -u -r1.70 install.inc --- includes/install.inc 20 Sep 2008 20:22:23 -0000 1.70 +++ includes/install.inc 24 Sep 2008 19:06:38 -0000 @@ -502,6 +502,7 @@ function _drupal_install_module($module) { if (drupal_get_installed_schema_version($module, TRUE) == SCHEMA_UNINSTALLED) { module_load_install($module); + drupal_install_schema($module); module_invoke($module, 'install'); $versions = drupal_get_schema_versions($module); drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED); @@ -565,6 +566,7 @@ // Uninstall the module(s). module_load_install($module); + drupal_install_schema($module); module_invoke($module, 'uninstall'); // Now remove the menu links for all paths declared by this module. Index: modules/forum/forum.install =================================================================== RCS file: /cvs/drupal/drupal/modules/forum/forum.install,v retrieving revision 1.19 diff -u -r1.19 forum.install --- modules/forum/forum.install 25 Jun 2008 07:47:20 -0000 1.19 +++ modules/forum/forum.install 24 Sep 2008 19:06:38 -0000 @@ -5,8 +5,6 @@ * Implementation of hook_install(). */ function forum_install() { - // Create tables. - drupal_install_schema('forum'); // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module. db_query("UPDATE {system} SET weight = 1 WHERE name = 'forum'"); } @@ -49,8 +47,7 @@ // Delete the vocabulary. $vid = variable_get('forum_nav_vocabulary', ''); taxonomy_del_vocabulary($vid); - - db_query('DROP TABLE {forum}'); + variable_del('forum_containers'); variable_del('forum_nav_vocabulary'); variable_del('forum_hot_topic'); Index: modules/statistics/statistics.install =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics/statistics.install,v retrieving revision 1.13 diff -u -r1.13 statistics.install --- modules/statistics/statistics.install 18 Dec 2007 12:59:22 -0000 1.13 +++ modules/statistics/statistics.install 24 Sep 2008 19:06:39 -0000 @@ -2,14 +2,6 @@ // $Id: statistics.install,v 1.13 2007/12/18 12:59:22 dries Exp $ /** - * Implementation of hook_install(). - */ -function statistics_install() { - // Create tables. - drupal_install_schema('statistics'); -} - -/** * Changes session ID field to VARCHAR(64) to add support for SHA-1 hashes. */ function statistics_update_1000() { @@ -32,9 +24,6 @@ * Implementation of hook_uninstall(). */ function statistics_uninstall() { - // Remove tables. - drupal_uninstall_schema('statistics'); - variable_del('statistics_count_content_views'); variable_del('statistics_enable_access_log'); variable_del('statistics_flush_accesslog_timer'); Index: modules/update/update.install =================================================================== RCS file: /cvs/drupal/drupal/modules/update/update.install,v retrieving revision 1.5 diff -u -r1.5 update.install --- modules/update/update.install 6 Feb 2008 19:38:28 -0000 1.5 +++ modules/update/update.install 24 Sep 2008 19:06:39 -0000 @@ -5,8 +5,6 @@ * Implementation of hook_install(). */ function update_install() { - // Create cache table. - drupal_install_schema('update'); // Remove stale variables from update_status 5.x contrib, if any. _update_remove_update_status_variables(); } @@ -15,8 +13,6 @@ * Implementation of hook_uninstall(). */ function update_uninstall() { - // Remove cache table. - drupal_uninstall_schema('update'); // Clear any variables that might be in use $variables = array( 'update_check_frequency', Index: modules/menu/menu.install =================================================================== RCS file: /cvs/drupal/drupal/modules/menu/menu.install,v retrieving revision 1.13 diff -u -r1.13 menu.install --- modules/menu/menu.install 18 Sep 2008 10:44:19 -0000 1.13 +++ modules/menu/menu.install 24 Sep 2008 19:06:38 -0000 @@ -5,9 +5,6 @@ * Implementation of hook_install(). */ function menu_install() { - // Create tables. - drupal_install_schema('menu'); - $t = get_t(); db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'navigation', $t('Navigation'), $t('The navigation menu is provided by Drupal and is the main interactive menu for any site. It is usually the only menu that contains personalized links for authenticated users, and is often not even visible to anonymous users.')); db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'main-menu', $t('Main menu'), $t('The Main menu is often used by themes to show the major sections of a site.')); @@ -18,8 +15,6 @@ * Implementation of hook_uninstall(). */ function menu_uninstall() { - // Remove tables. - drupal_uninstall_schema('menu'); menu_rebuild(); } Index: modules/block/block.install =================================================================== RCS file: /cvs/drupal/drupal/modules/block/block.install,v retrieving revision 1.11 diff -u -r1.11 block.install --- modules/block/block.install 15 May 2008 21:30:02 -0000 1.11 +++ modules/block/block.install 24 Sep 2008 19:06:38 -0000 @@ -2,6 +2,15 @@ // $Id: block.install,v 1.11 2008/05/15 21:30:02 dries Exp $ /** + * Implementation of hook_install(). + */ +function block_install() { + db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'login', 'garland', 1, 0, 'left', '', -1); + db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'navigation', 'garland', 1, 0, 'left', '', -1); + db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'system', 'powered-by', 'garland', 1, 10, 'footer', '', -1); +} + +/** * Implementation of hook_schema(). */ function block_schema() { Index: modules/filter/filter.install =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.install,v retrieving revision 1.9 diff -u -r1.9 filter.install --- modules/filter/filter.install 14 Apr 2008 17:48:37 -0000 1.9 +++ modules/filter/filter.install 24 Sep 2008 19:06:38 -0000 @@ -2,6 +2,38 @@ // $Id: filter.install,v 1.9 2008/04/14 17:48:37 dries Exp $ /** + * Implementation of hook_install(). + */ +function filter_install() { + + // Add input formats. + db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Filtered HTML', ',1,2,', 1); + db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Full HTML', '', 1); + + // Enable filters for each input format. + + // Filtered HTML: + // URL filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 2, 0); + // HTML filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 0, 1); + // Line break filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 1, 2); + // HTML corrector filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 3, 10); + + // Full HTML: + // URL filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 2, 0); + // Line break filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 1, 1); + // HTML corrector filter. + db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 3, 10); + + db_query("INSERT INTO {variable} (name, value) VALUES ('%s','%s')", 'filter_html_1', 'i:1;'); +} + +/** * Implementation of hook_schema(). */ function filter_schema() { Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.268 diff -u -r1.268 system.install --- modules/system/system.install 20 Sep 2008 20:22:24 -0000 1.268 +++ modules/system/system.install 24 Sep 2008 19:06:39 -0000 @@ -353,82 +353,15 @@ ); } - // Create tables. - $modules = array('system', 'filter', 'block', 'user', 'node', 'comment', 'taxonomy'); - foreach ($modules as $module) { - drupal_install_schema($module); - } - // Load system theme data appropriately. system_theme_data(); - // Inserting uid 0 here confuses MySQL -- the next user might be created as - // uid 2 which is not what we want. So we insert the first user here, the - // anonymous user. uid is 1 here for now, but very soon it will be changed - // to 0. - db_query("INSERT INTO {users} (name, mail) VALUES('%s', '%s')", '', ''); - // We need some placeholders here as name and mail are uniques and data is - // presumed to be a serialized array. Install will change uid 1 immediately - // anyways. So we insert the superuser here, the uid is 2 here for now, but - // very soon it will be changed to 1. - db_query("INSERT INTO {users} (name, mail, created, data) VALUES('%s', '%s', %d, '%s')", 'placeholder-for-uid-1', 'placeholder-for-uid-1', REQUEST_TIME, serialize(array())); - // This sets the above two users uid 0 (anonymous). We avoid an explicit 0 - // otherwise MySQL might insert the next auto_increment value. - db_query("UPDATE {users} SET uid = uid - uid WHERE name = '%s'", ''); - // This sets uid 1 (superuser). We skip uid 2 but that's not a big problem. - db_query("UPDATE {users} SET uid = 1 WHERE name = '%s'", 'placeholder-for-uid-1'); - - // Built-in roles. - db_query("INSERT INTO {role} (name) VALUES ('%s')", 'anonymous user'); - db_query("INSERT INTO {role} (name) VALUES ('%s')", 'authenticated user'); - - // Anonymous role permissions. - db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 1, 'access content'); - - // Authenticated role permissions. - db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'access comments'); - db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'access content'); - db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'post comments'); - db_query("INSERT INTO {role_permission} (rid, permission) VALUES (%d, '%s')", 2, 'post comments without approval'); - db_query("INSERT INTO {variable} (name, value) VALUES ('%s', '%s')", 'theme_default', 's:7:"garland";'); db_query("UPDATE {system} SET status = %d WHERE type = '%s' AND name = '%s'", 1, 'theme', 'garland'); - db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'login', 'garland', 1, 0, 'left', '', -1); - db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'navigation', 'garland', 1, 0, 'left', '', -1); - db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'system', 'powered-by', 'garland', 1, 10, 'footer', '', -1); - - db_query("INSERT INTO {node_access} (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (%d, %d, '%s', %d, %d, %d)", 0, 0, 'all', 1, 0, 0); - - // Add input formats. - db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Filtered HTML', ',1,2,', 1); - db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Full HTML', '', 1); - - // Enable filters for each input format. - - // Filtered HTML: - // URL filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 2, 0); - // HTML filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 0, 1); - // Line break filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 1, 2); - // HTML corrector filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 3, 10); - - // Full HTML: - // URL filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 2, 0); - // Line break filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 1, 1); - // HTML corrector filter. - db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 3, 10); - - db_query("INSERT INTO {variable} (name, value) VALUES ('%s','%s')", 'filter_html_1', 'i:1;'); - + db_query("INSERT INTO {variable} (name, value) VALUES ('%s', '%s')", 'node_options_forum', 'a:1:{i:0;s:6:"status";}'); $cron_key = serialize(md5(mt_rand())); - db_query("INSERT INTO {variable} (name, value) VALUES ('%s', '%s')", 'cron_key', $cron_key); } Index: modules/simpletest/simpletest.install =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.install,v retrieving revision 1.10 diff -u -r1.10 simpletest.install --- modules/simpletest/simpletest.install 20 Sep 2008 03:49:23 -0000 1.10 +++ modules/simpletest/simpletest.install 24 Sep 2008 19:06:39 -0000 @@ -5,7 +5,6 @@ * Implementation of hook_install(). */ function simpletest_install() { - drupal_install_schema('simpletest'); // Check for files directory. $path = file_directory_path() . '/simpletest'; if (file_check_directory($path, FILE_CREATE_DIRECTORY)) { @@ -96,7 +95,6 @@ variable_del('simpletest_httpauth_username'); variable_del('simpletest_httpauth_pass'); variable_del('simpletest_devel'); - drupal_uninstall_schema('simpletest'); } /** Index: modules/locale/locale.install =================================================================== RCS file: /cvs/drupal/drupal/modules/locale/locale.install,v retrieving revision 1.30 diff -u -r1.30 locale.install --- modules/locale/locale.install 14 Apr 2008 17:48:37 -0000 1.30 +++ modules/locale/locale.install 24 Sep 2008 19:06:38 -0000 @@ -9,9 +9,6 @@ // fields; non-MySQL database servers need to ensure the field type is text // and that LIKE produces a case-sensitive comparison. - // Create tables. - drupal_install_schema('locale'); - db_query("INSERT INTO {languages} (language, name, native, direction, enabled, weight, javascript) VALUES ('en', 'English', 'English', '0', '1', '0', '')"); } @@ -216,9 +213,6 @@ file_delete(file_create_path($file->javascript)); } } - - // Remove tables. - drupal_uninstall_schema('locale'); } /** Index: modules/node/node.install =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.install,v retrieving revision 1.6 diff -u -r1.6 node.install --- modules/node/node.install 15 Apr 2008 08:39:03 -0000 1.6 +++ modules/node/node.install 24 Sep 2008 19:06:38 -0000 @@ -2,6 +2,13 @@ // $Id: node.install,v 1.6 2008/04/15 08:39:03 dries Exp $ /** + * Implementation of hook_install(). + */ +function node_install() { + db_query("INSERT INTO {node_access} (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (%d, %d, '%s', %d, %d, %d)", 0, 0, 'all', 1, 0, 0); +} + +/** * Implementation of hook_schema(). */ function node_schema() { Index: modules/dblog/dblog.install =================================================================== RCS file: /cvs/drupal/drupal/modules/dblog/dblog.install,v retrieving revision 1.8 diff -u -r1.8 dblog.install --- modules/dblog/dblog.install 21 Aug 2008 19:36:37 -0000 1.8 +++ modules/dblog/dblog.install 24 Sep 2008 19:06:38 -0000 @@ -2,22 +2,6 @@ // $Id: dblog.install,v 1.8 2008/08/21 19:36:37 dries Exp $ /** - * Implementation of hook_install(). - */ -function dblog_install() { - // Create tables. - drupal_install_schema('dblog'); -} - -/** - * Implementation of hook_uninstall(). - */ -function dblog_uninstall() { - // Remove tables. - drupal_uninstall_schema('dblog'); -} - -/** * Implementation of hook_schema(). */ function dblog_schema() { Index: modules/trigger/trigger.install =================================================================== RCS file: /cvs/drupal/drupal/modules/trigger/trigger.install,v retrieving revision 1.5 diff -u -r1.5 trigger.install --- modules/trigger/trigger.install 28 Dec 2007 12:02:52 -0000 1.5 +++ modules/trigger/trigger.install 24 Sep 2008 19:06:39 -0000 @@ -5,22 +5,11 @@ * Implementation of hook_install(). */ function trigger_install() { - // Create tables. - drupal_install_schema('trigger'); - // Do initial synchronization of actions in code and the database. actions_synchronize(actions_list()); } /** - * Implementation of hook_uninstall(). - */ -function trigger_uninstall() { - // Remove tables. - drupal_uninstall_schema('trigger'); -} - -/** * Implementation of hook_schema(). */ function trigger_schema() { Index: modules/contact/contact.install =================================================================== RCS file: /cvs/drupal/drupal/modules/contact/contact.install,v retrieving revision 1.10 diff -u -r1.10 contact.install --- modules/contact/contact.install 18 Dec 2007 12:59:21 -0000 1.10 +++ modules/contact/contact.install 24 Sep 2008 19:06:38 -0000 @@ -2,20 +2,9 @@ // $Id: contact.install,v 1.10 2007/12/18 12:59:21 dries Exp $ /** - * Implementation of hook_install(). - */ -function contact_install() { - // Create tables. - drupal_install_schema('contact'); -} - -/** * Implementation of hook_uninstall(). */ function contact_uninstall() { - // Remove tables. - drupal_uninstall_schema('contact'); - variable_del('contact_default_status'); variable_del('contact_form_information'); variable_del('contact_hourly_threshold'); Index: modules/book/book.install =================================================================== RCS file: /cvs/drupal/drupal/modules/book/book.install,v retrieving revision 1.22 diff -u -r1.22 book.install --- modules/book/book.install 15 May 2008 21:19:24 -0000 1.22 +++ modules/book/book.install 24 Sep 2008 19:06:38 -0000 @@ -5,8 +5,6 @@ * Implementation of hook_install(). */ function book_install() { - // Create tables. - drupal_install_schema('book'); // Add the node type. _book_install_type_create(); } @@ -18,8 +16,6 @@ // Delete menu links. db_query("DELETE FROM {menu_links} WHERE module = 'book'"); menu_cache_clear_all(); - // Remove tables. - drupal_uninstall_schema('book'); } function _book_install_type_create() { Index: modules/profile/profile.install =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.install,v retrieving revision 1.13 diff -u -r1.13 profile.install --- modules/profile/profile.install 15 Mar 2008 12:31:29 -0000 1.13 +++ modules/profile/profile.install 24 Sep 2008 19:06:38 -0000 @@ -2,20 +2,9 @@ // $Id: profile.install,v 1.13 2008/03/15 12:31:29 dries Exp $ /** - * Implementation of hook_install(). - */ -function profile_install() { - // Create tables. - drupal_install_schema('profile'); -} - -/** * Implementation of hook_uninstall(). */ function profile_uninstall() { - // Remove tables - drupal_uninstall_schema('profile'); - variable_del('profile_block_author_fields'); } Index: modules/search/search.install =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.install,v retrieving revision 1.15 diff -u -r1.15 search.install --- modules/search/search.install 15 Mar 2008 12:31:29 -0000 1.15 +++ modules/search/search.install 24 Sep 2008 19:06:38 -0000 @@ -2,20 +2,9 @@ // $Id: search.install,v 1.15 2008/03/15 12:31:29 dries Exp $ /** - * Implementation of hook_install(). - */ -function search_install() { - // Create tables. - drupal_install_schema('search'); -} - -/** * Implementation of hook_uninstall(). */ function search_uninstall() { - // Remove tables. - drupal_uninstall_schema('search'); - variable_del('minimum_word_size'); variable_del('overlap_cjk'); variable_del('search_cron_limit'); Index: modules/poll/poll.install =================================================================== RCS file: /cvs/drupal/drupal/modules/poll/poll.install,v retrieving revision 1.15 diff -u -r1.15 poll.install --- modules/poll/poll.install 15 May 2008 20:55:58 -0000 1.15 +++ modules/poll/poll.install 24 Sep 2008 19:06:38 -0000 @@ -2,22 +2,6 @@ // $Id: poll.install,v 1.15 2008/05/15 20:55:58 dries Exp $ /** - * Implementation of hook_install(). - */ -function poll_install() { - // Create tables. - drupal_install_schema('poll'); -} - -/** - * Implementation of hook_uninstall(). - */ -function poll_uninstall() { - // Remove tables. - drupal_uninstall_schema('poll'); -} - -/** * Implementation of hook_schema(). */ function poll_schema() { Index: modules/aggregator/aggregator.install =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.install,v retrieving revision 1.17 diff -u -r1.17 aggregator.install --- modules/aggregator/aggregator.install 12 Aug 2008 07:00:48 -0000 1.17 +++ modules/aggregator/aggregator.install 24 Sep 2008 19:06:38 -0000 @@ -2,20 +2,9 @@ // $Id: aggregator.install,v 1.17 2008/08/12 07:00:48 dries Exp $ /** - * Implementation of hook_install(). - */ -function aggregator_install() { - // Create tables. - drupal_install_schema('aggregator'); -} - -/** * Implementation of hook_uninstall(). */ function aggregator_uninstall() { - // Remove tables. - drupal_uninstall_schema('aggregator'); - variable_del('aggregator_allowed_html_tags'); variable_del('aggregator_summary_items'); variable_del('aggregator_clear'); Index: modules/openid/openid.install =================================================================== RCS file: /cvs/drupal/drupal/modules/openid/openid.install,v retrieving revision 1.3 diff -u -r1.3 openid.install --- modules/openid/openid.install 10 Oct 2007 11:39:33 -0000 1.3 +++ modules/openid/openid.install 24 Sep 2008 19:06:38 -0000 @@ -2,22 +2,6 @@ // $Id: openid.install,v 1.3 2007/10/10 11:39:33 goba Exp $ /** - * Implementation of hook_install(). - */ -function openid_install() { - // Create table. - drupal_install_schema('openid'); -} - -/** - * Implementation of hook_uninstall(). - */ -function openid_uninstall() { - // Remove table. - drupal_uninstall_schema('openid'); -} - -/** * Implementation of hook_schema(). */ function openid_schema() {