'admin/config/system/statistics', 'admin/settings/filters' => 'admin/config/content/filter', 'admin/build/modules' => 'admin/modules', 'admin/build/themes' => 'admin/appearance', 'admin/build/path' => 'admin/config/search/path', 'admin/content/types' => 'admin/structure/types', 'admin/content/taxonomy' => 'admin/structure/taxonomy', 'admin/content/forum' => 'admin/structure/forum', 'admin/build/testing' => 'admin/config/development/testing', 'admin/settings/site-maintenance' => 'admin/config/development/maintenance', 'admin/settings/performance' => 'admin/config/development/performance', 'admin/settings/filters' => 'admin/config/content/formats', 'admin/settings/search' => 'admin/config/search/settings', 'admin/settings/clean-urls' => 'admin/config/search/clean-urls', 'admin/settings/image' => 'admin/config/media/image', 'admin/settings' => 'admin/config', 'admin/build' => 'admin/structure', ); foreach ($path_conversions as $old_path => $new_path) { $from[] = "@(['\"])$old_path(/?.*?)(['\"])@"; $to[] = "$1$new_path$2$1"; } } /** * Upgrades database tables. */ function coder_upgrade_upgrade_database_tables(&$from, &$to) { $table_conversion = array( 'box' => 'custom_block', // TODO Is this an error? 'boxes' => 'block_custom', 'blocks' => 'block', 'blocks_roles' => 'block_role', ); foreach ($table_conversion as $old_table => $new_table) { $from[] = '/\{' . $old_table . '\}/i'; $to[] = '{' . $new_table . '}'; } // http://drupal.org/node/224333#taxonomy_tables // This expression format is more compact than above. $from[] = '@({|\'|")(term_data|term_hierarchy|term_node|term_relation|term_synonym|vocabulary)(}|\'|")@'; $to[] = "$1taxonomy_$2$3"; $from[] = '@({|\'|")(vocabulary_node_type)s(}|\'|")@'; $to[] = "$1taxonomy_$2$3"; }