diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-20 18:51:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-20 18:51:36 +0000 |
commit | d24d954479320116bc01f332c28a8eaab28c3ccd (patch) | |
tree | 1c791703bde5429b500e91cabb5845a80e13aff3 /modules/system | |
parent | 999d76e7aa9d9fb1b79b0be171e18e705d9ab7ff (diff) | |
download | brdo-d24d954479320116bc01f332c28a8eaab28c3ccd.tar.gz brdo-d24d954479320116bc01f332c28a8eaab28c3ccd.tar.bz2 |
- Patch #521474 by bangpound, JuliaKM et al: rename admin/site-building to admin/structure.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 20 | ||||
-rw-r--r-- | modules/system/system.css | 4 | ||||
-rw-r--r-- | modules/system/system.install | 10 | ||||
-rw-r--r-- | modules/system/system.module | 48 | ||||
-rw-r--r-- | modules/system/system.test | 34 |
5 files changed, 58 insertions, 58 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 8b99c8d0b..834cea968 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -63,7 +63,7 @@ function system_main_admin_page($arg = NULL) { /** * Provide a single block from the administration menu as a page. * This function is often a destination for these blocks. - * For example, 'admin/build/types' needs to have a destination to be valid + * For example, 'admin/structure/types' needs to have a destination to be valid * in the Drupal menu system, but too much information there might be * hidden, so we supply the contents of the block. * @@ -167,7 +167,7 @@ function system_themes_form() { $options[$theme->name] = $theme->info['name']; if (!empty($theme->status) || $theme->name == variable_get('admin_theme', 0)) { - $form[$theme->name]['operations'] = array('#markup' => l(t('configure'), 'admin/build/themes/settings/' . $theme->name) ); + $form[$theme->name]['operations'] = array('#markup' => l(t('configure'), 'admin/structure/themes/settings/' . $theme->name) ); } else { // Dummy element for drupal_render. Cleaner than adding a check in the theme function. @@ -293,7 +293,7 @@ function system_themes_form_submit($form, &$form_state) { menu_rebuild(); drupal_theme_rebuild(); drupal_set_message(t('The configuration options have been saved.')); - $form_state['redirect'] = 'admin/build/themes'; + $form_state['redirect'] = 'admin/structure/themes'; // Notify locale module about new themes being enabled, so translations can // be imported. This might start a batch, and only return to the redirect @@ -652,7 +652,7 @@ function system_modules($form_state = array()) { '#type' => 'submit', '#value' => t('Save configuration'), ); - $form['#action'] = url('admin/build/modules/list/confirm'); + $form['#action'] = url('admin/structure/modules/list/confirm'); return $form; } @@ -774,7 +774,7 @@ function system_modules_confirm_form($modules, $storage) { $form = confirm_form( $form, t('Some required modules must be enabled'), - 'admin/build/modules', + 'admin/structure/modules', t('Would you like to continue with enabling the above?'), t('Continue'), t('Cancel')); @@ -924,7 +924,7 @@ function system_modules_submit($form, &$form_state) { drupal_clear_css_cache(); drupal_clear_js_cache(); - $form_state['redirect'] = 'admin/build/modules'; + $form_state['redirect'] = 'admin/structure/modules'; // Notify locale module about module changes, so translations can be // imported. This might start a batch, and only return to the redirect @@ -990,7 +990,7 @@ function system_modules_uninstall($form_state = NULL) { '#type' => 'submit', '#value' => t('Uninstall'), ); - $form['#action'] = url('admin/build/modules/uninstall/confirm'); + $form['#action'] = url('admin/structure/modules/uninstall/confirm'); } else { $form['modules'] = array(); @@ -1031,7 +1031,7 @@ function system_modules_uninstall_confirm_form($storage) { $form = confirm_form( $form, t('Confirm uninstall'), - 'admin/build/modules/uninstall', + 'admin/structure/modules/uninstall', t('Would you like to continue with uninstalling the above?'), t('Uninstall'), t('Cancel')); @@ -1046,7 +1046,7 @@ function system_modules_uninstall_validate($form, &$form_state) { // Form submitted, but no modules selected. if (!count(array_filter($form_state['values']['uninstall']))) { drupal_set_message(t('No modules selected.'), 'error'); - drupal_goto('admin/build/modules/uninstall'); + drupal_goto('admin/structure/modules/uninstall'); } } @@ -1064,7 +1064,7 @@ function system_modules_uninstall_submit($form, &$form_state) { drupal_set_message(t('The selected modules have been uninstalled.')); unset($form_state['storage']); - $form_state['redirect'] = 'admin/build/modules/uninstall'; + $form_state['redirect'] = 'admin/structure/modules/uninstall'; } else { $form_state['storage'] = $form_state['values']; diff --git a/modules/system/system.css b/modules/system/system.css index 1032618ff..beaf2503b 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -505,14 +505,14 @@ html.js .js-hide { } /* -** Styles for the system modules page (admin/build/modules) +** Styles for the system modules page (admin/structure/modules) */ #system-modules div.incompatible { font-weight: bold; } /* -** Styles for the system themes page (admin/build/themes) +** Styles for the system themes page (admin/structure/themes) */ #system-themes-form div.incompatible { font-weight: bold; diff --git a/modules/system/system.install b/modules/system/system.install index c1ab41c16..748e7a302 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -272,7 +272,7 @@ function system_requirements($phase) { $requirements['update status'] = array( 'value' => $t('Not enabled'), 'severity' => REQUIREMENT_WARNING, - 'description' => $t('Update notifications are not enabled. It is <strong>highly recommended</strong> that you enable the update status module from the <a href="@module">module administration page</a> in order to stay up-to-date on new releases. For more information please read the <a href="@update">Update status handbook page</a>.', array('@update' => 'http://drupal.org/handbook/modules/update', '@module' => url('admin/build/modules'))), + 'description' => $t('Update notifications are not enabled. It is <strong>highly recommended</strong> that you enable the update status module from the <a href="@module">module administration page</a> in order to stay up-to-date on new releases. For more information please read the <a href="@update">Update status handbook page</a>.', array('@update' => 'http://drupal.org/handbook/modules/update', '@module' => url('admin/structure/modules'))), ); } else { @@ -2024,7 +2024,7 @@ function system_update_7021() { // Add contact help block for themes, which had blocks. $ret[] = update_sql("INSERT INTO {block} (module, delta, theme, status, weight, region, visibility, pages, cache) VALUES ('block', '" . $bid . "', '" . $theme . "', 1, 5, 'help', 1, 'contact', -1)"); } - drupal_set_message('The contact form information setting was migrated to <a href="' . url('admin/build/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the site-wide contact page. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right.'); + drupal_set_message('The contact form information setting was migrated to <a href="' . url('admin/structure/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the site-wide contact page. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right.'); } // Migrate user help setting. @@ -2034,7 +2034,7 @@ function system_update_7021() { // Add user registration help block for themes, which had blocks. $ret[] = update_sql("INSERT INTO {block} (module, delta, theme, status, weight, region, visibility, pages, cache) VALUES ('block', '" . $bid . "', '" . $theme . "', 1, 5, 'help', 1, 'user/register', -1)"); } - drupal_set_message('The user registration guidelines were migrated to <a href="' . url('admin/build/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the user registration page. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right.'); + drupal_set_message('The user registration guidelines were migrated to <a href="' . url('admin/structure/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the user registration page. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right.'); } // Migrate site mission setting. @@ -2044,7 +2044,7 @@ function system_update_7021() { // Add mission block for themes, which had blocks. $ret[] = update_sql("INSERT INTO {block} (module, delta, theme, status, weight, region, visibility, pages, cache) VALUES ('block', '" . $bid . "', '" . $theme . "', 1, 0, 'highlight', 1, '<front>', -1)"); } - drupal_set_message('The site mission was migrated to <a href="' . url('admin/build/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the front page in the highlighted content region. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right. If your theme does not have a highlighted content region, you might need to <a href="' . url('admin/build/block') . '">relocate the block</a>.'); + drupal_set_message('The site mission was migrated to <a href="' . url('admin/structure/block/configure/block/' . $bid) . '">a custom block</a> and set up to only show on the front page in the highlighted content region. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right. If your theme does not have a highlighted content region, you might need to <a href="' . url('admin/structure/block') . '">relocate the block</a>.'); // Migrate mission to RSS site description. variable_set('feed_description', $mission); } @@ -2058,7 +2058,7 @@ function system_update_7021() { // before the other blocks). $ret[] = update_sql("INSERT INTO {block} (module, delta, theme, status, weight, region, pages, cache) VALUES ('block', '" . $bid . "', '" . $theme . "', 1, -10, 'footer', '', -1)"); } - drupal_set_message('The footer message was migrated to <a href="' . url('admin/build/block/configure/block/' . $bid) . '">a custom block</a> and set up to appear in the footer. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right. If your theme does not have a footer region, you might need to <a href="' . url('admin/build/block') . '">relocate the block</a>.'); + drupal_set_message('The footer message was migrated to <a href="' . url('admin/structure/block/configure/block/' . $bid) . '">a custom block</a> and set up to appear in the footer. The block was set to use the default text format, which might differ from the HTML based format used before. Please check the block and ensure that the output is right. If your theme does not have a footer region, you might need to <a href="' . url('admin/structure/block') . '">relocate the block</a>.'); } // Remove the variables (even if they were saved empty on the admin interface), diff --git a/modules/system/system.module b/modules/system/system.module index 2e392ea3c..1137cc087 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -92,8 +92,8 @@ function system_help($path, $arg) { case 'admin/help#system': $output = '<p>' . t('The system module is at the foundation of your Drupal website, and provides basic but extensible functionality for use by other modules and themes. Some integral elements of Drupal are contained in and managed by the system module, including caching, enabling or disabling of modules and themes, preparing and displaying the administrative page, and configuring fundamental site settings. A number of key system maintenance operations are also part of the system module.') . '</p>'; $output .= '<p>' . t('The system module provides:') . '</p>'; - $output .= '<ul><li>' . t('support for enabling and disabling <a href="@modules">modules</a>. Drupal comes packaged with a number of core modules; each module provides a discrete set of features and may be enabled depending on the needs of your site. A wide array of additional modules contributed by members of the Drupal community are available for download at the <a href="@drupal-modules">Drupal.org module page</a>.', array('@modules' => url('admin/build/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) . '</li>'; - $output .= '<li>' . t('support for enabling and disabling <a href="@themes">themes</a>, which determine the design and presentation of your site. Drupal comes packaged with several core themes and additional contributed themes are available at the <a href="@drupal-themes">Drupal.org theme page</a>.', array('@themes' => url('admin/build/themes'), '@drupal-themes' => 'http://drupal.org/project/themes')) . '</li>'; + $output .= '<ul><li>' . t('support for enabling and disabling <a href="@modules">modules</a>. Drupal comes packaged with a number of core modules; each module provides a discrete set of features and may be enabled depending on the needs of your site. A wide array of additional modules contributed by members of the Drupal community are available for download at the <a href="@drupal-modules">Drupal.org module page</a>.', array('@modules' => url('admin/structure/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) . '</li>'; + $output .= '<li>' . t('support for enabling and disabling <a href="@themes">themes</a>, which determine the design and presentation of your site. Drupal comes packaged with several core themes and additional contributed themes are available at the <a href="@drupal-themes">Drupal.org theme page</a>.', array('@themes' => url('admin/structure/themes'), '@drupal-themes' => 'http://drupal.org/project/themes')) . '</li>'; $output .= '<li>' . t('a robust <a href="@cache-settings">caching system</a> that allows the efficient re-use of previously-constructed web pages and web page components. Drupal stores the pages requested by anonymous users in a compressed format; depending on your site configuration and the amount of your web traffic tied to anonymous visitors, Drupal\'s caching system may significantly increase the speed of your site.', array('@cache-settings' => url('admin/settings/performance'))) . '</li>'; $output .= '<li>' . t('a set of routine administrative operations that rely on a correctly-configured <a href="@cron">cron maintenance task</a> to run automatically. A number of other modules, including the feed aggregator, and search also rely on <a href="@cron">cron maintenance tasks</a>. For more information, see the online handbook entry for <a href="@handbook">configuring cron jobs</a>.', array('@cron' => url('admin/reports/status'), '@handbook' => 'http://drupal.org/cron')) . '</li>'; $output .= '<li>' . t('basic configuration options for your site, including <a href="@regional-settings">date and time settings</a>, <a href="@file-system">file system settings</a>, <a href="@clean-url">clean URL support</a>, <a href="@site-info">site name and other information</a>, and a <a href="@maintenance-mode">maintenance mode</a> for taking your site temporarily offline.', array('@regional-settings' => url('admin/settings/regional-settings'), '@file-system' => url('admin/settings/file-system'), '@clean-url' => url('admin/settings/clean-urls'), '@site-info' => url('admin/settings/site-information'), '@maintenance-mode' => url('admin/settings/maintenance-mode'))) . '</li></ul>'; @@ -101,24 +101,24 @@ function system_help($path, $arg) { return $output; case 'admin/by-module': return '<p>' . t('This page shows you all available administration tasks for each module.') . '</p>'; - case 'admin/build/themes': + case 'admin/structure/themes': $output = '<p>' . t('Select which themes are available to your users and specify the default theme. To configure site-wide display settings, click the "configure" task above. Alternatively, to override these settings in a specific theme, click the "configure" link for that theme. Note that different themes may have different regions available for displaying content; for consistency in presentation, you may wish to enable only one theme.') . '</p>'; $output .= '<p>' . t('To change the appearance of your site, a number of <a href="@themes">contributed themes</a> are available.', array('@themes' => 'http://drupal.org/project/themes')) . '</p>'; return $output; - case 'admin/build/themes/settings/' . $arg[4]: + case 'admin/structure/themes/settings/' . $arg[4]: $reference = explode('.', $arg[4], 2); $theme = array_pop($reference); - return '<p>' . t('These options control the display settings for the <code>%template</code> theme. When your site is displayed using this theme, these settings will be used. By clicking "Reset to defaults," you can choose to use the <a href="@global">global settings</a> for this theme.', array('%template' => $theme, '@global' => url('admin/build/themes/settings'))) . '</p>'; - case 'admin/build/themes/settings': + return '<p>' . t('These options control the display settings for the <code>%template</code> theme. When your site is displayed using this theme, these settings will be used. By clicking "Reset to defaults," you can choose to use the <a href="@global">global settings</a> for this theme.', array('%template' => $theme, '@global' => url('admin/structure/themes/settings'))) . '</p>'; + case 'admin/structure/themes/settings': return '<p>' . t('These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.') . '</p>'; - case 'admin/build/modules': + case 'admin/structure/modules': $output = '<p>' . t('Modules are plugins that extend Drupal\'s core functionality. To further extend your site\'s functionality, a number of <a href="@modules">contributed modules</a> are available for download.', array('@permissions' => url('admin/user/permissions'), '@modules' => 'http://drupal.org/project/modules')) . '</p>'; $output .= '<p>' . t('Module-related tasks can be located on the <a href="@by-module">administration by module page</a>. New <a href="@permissions">module-related permissions</a> may also become available as new modules are enabled.', array('@by-module' => url('admin/by-module'), '@permissions' => url('admin/user/permissions'))) . '</p>'; $output .= '<p>' . t('Each time a module is updated, it is important that <a href="@update-php">update.php</a> is run. To help manage the update process, the <em>Update status</em> module, if enabled, provides <a href="@updates">information on new versions of modules (and themes)</a> as they are released. Regular review of the <a href="@updates">available updates page</a> is essential to maintaining a secure and current site.', array('@update-php' => $base_url . '/update.php', '@updates' => url('admin/reports/updates'))) . '</p>'; return $output; - case 'admin/build/modules/uninstall': - return '<p>' . t('The uninstall process removes all data related to a module. To uninstall a module, you must first disable it on the main <a href="@modules">modules page</a>. Not all modules support this feature.', array('@modules' => url('admin/build/modules'))) . '</p>'; - case 'admin/build/block/configure': + case 'admin/structure/modules/uninstall': + return '<p>' . t('The uninstall process removes all data related to a module. To uninstall a module, you must first disable it on the main <a href="@modules">modules page</a>. Not all modules support this feature.', array('@modules' => url('admin/structure/modules'))) . '</p>'; + case 'admin/structure/block/configure': if ($arg[4] == 'system' && $arg[5] == 'powered-by') { return '<p>' . t('The <em>Powered by Drupal</em> block is an optional link to the home page of the Drupal project. While there is absolutely no requirement that sites feature this link, it may be used to show support for Drupal.') . '</p>'; } @@ -133,7 +133,7 @@ function system_help($path, $arg) { $output = '<p>' . t('Actions are individual tasks that the system can do, such as unpublishing a piece of content or banning a user. Modules, such as the trigger module, can fire these actions when certain system events happen; for example, when a new post is added or when a user logs in. Modules may also provide additional actions.') . '</p>'; $output .= '<p>' . t('There are two types of actions: simple and advanced. Simple actions do not require any additional configuration, and are listed here automatically. Advanced actions can do more than simple actions; for example, send an e-mail to a specified address, or check for certain words within a piece of content. These actions need to be created and configured first before they may be used. To create an advanced action, select the action from the drop-down below and click the <em>Create</em> button.') . '</p>'; if (module_exists('trigger')) { - $output .= '<p>' . t('You may proceed to the <a href="@url">Triggers</a> page to assign these actions to system events.', array('@url' => url('admin/build/trigger'))) . '</p>'; + $output .= '<p>' . t('You may proceed to the <a href="@url">Triggers</a> page to assign these actions to system events.', array('@url' => url('admin/structure/trigger'))) . '</p>'; } return $output; case 'admin/settings/actions/configure': @@ -538,44 +538,44 @@ function system_menu() { 'access callback' => 'system_admin_menu_block_access', 'access arguments' => array('admin/settings', 'access administration pages'), ); - $items['admin/build'] = array( - 'title' => 'Site building', + $items['admin/structure'] = array( + 'title' => 'Structure', 'description' => 'Control how your site looks and feels.', 'position' => 'right', 'weight' => -10, 'page callback' => 'system_admin_menu_block_page', 'access callback' => 'system_admin_menu_block_access', - 'access arguments' => array('admin/build', 'access administration pages'), + 'access arguments' => array('admin/structure', 'access administration pages'), ); // Themes. - $items['admin/build/themes'] = array( + $items['admin/structure/themes'] = array( 'title' => 'Themes', 'description' => 'Change which theme your site uses or allows users to set.', 'page callback' => 'drupal_get_form', 'page arguments' => array('system_themes_form'), 'access arguments' => array('administer site configuration'), ); - $items['admin/build/themes/select'] = array( + $items['admin/structure/themes/select'] = array( 'title' => 'List', 'description' => 'Select the default theme for your site.', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, ); - $items['admin/build/themes/settings'] = array( + $items['admin/structure/themes/settings'] = array( 'title' => 'Configure', 'page arguments' => array('system_theme_settings'), 'access arguments' => array('administer site configuration'), 'type' => MENU_LOCAL_TASK, ); // Theme configuration subtabs. - $items['admin/build/themes/settings/global'] = array( + $items['admin/structure/themes/settings/global'] = array( 'title' => 'Global settings', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, ); foreach (list_themes() as $theme) { - $items['admin/build/themes/settings/' . $theme->name] = array( + $items['admin/structure/themes/settings/' . $theme->name] = array( 'title' => $theme->info['name'], 'page arguments' => array('system_theme_settings', $theme->name), 'type' => MENU_LOCAL_TASK, @@ -585,29 +585,29 @@ function system_menu() { } // Modules. - $items['admin/build/modules'] = array( + $items['admin/structure/modules'] = array( 'title' => 'Modules', 'description' => 'Enable or disable add-on modules for your site.', 'page callback' => 'drupal_get_form', 'page arguments' => array('system_modules'), 'access arguments' => array('administer site configuration'), ); - $items['admin/build/modules/list'] = array( + $items['admin/structure/modules/list'] = array( 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, ); - $items['admin/build/modules/list/confirm'] = array( + $items['admin/structure/modules/list/confirm'] = array( 'title' => 'List', 'access arguments' => array('administer site configuration'), 'type' => MENU_CALLBACK, ); - $items['admin/build/modules/uninstall'] = array( + $items['admin/structure/modules/uninstall'] = array( 'title' => 'Uninstall', 'page arguments' => array('system_modules_uninstall'), 'access arguments' => array('administer site configuration'), 'type' => MENU_LOCAL_TASK, ); - $items['admin/build/modules/uninstall/confirm'] = array( + $items['admin/structure/modules/uninstall/confirm'] = array( 'title' => 'Uninstall', 'access arguments' => array('administer site configuration'), 'type' => MENU_CALLBACK, diff --git a/modules/system/system.test b/modules/system/system.test index 4d40465ef..ad262e03f 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -114,7 +114,7 @@ class EnableDisableTestCase extends ModuleTestCase { $edit = array(); $edit['modules[Core][aggregator][enable]'] = 'aggregator'; $edit['modules[Core][forum][enable]'] = 'forum'; - $this->drupalPost('admin/build/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); // Check that hook_modules_installed and hook_modules_enabled hooks were invoked and check tables. @@ -127,7 +127,7 @@ class EnableDisableTestCase extends ModuleTestCase { // Disable aggregator, check tables, uninstall aggregator, check tables. $edit = array(); $edit['modules[Core][aggregator][enable]'] = FALSE; - $this->drupalPost('admin/build/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); // Check that hook_modules_disabled hook was invoked and check tables. @@ -139,7 +139,7 @@ class EnableDisableTestCase extends ModuleTestCase { // Uninstall the module. $edit = array(); $edit['uninstall[aggregator]'] = 'aggregator'; - $this->drupalPost('admin/build/modules/uninstall', $edit, t('Uninstall')); + $this->drupalPost('admin/structure/modules/uninstall', $edit, t('Uninstall')); $this->drupalPost(NULL, NULL, t('Uninstall')); $this->assertText(t('The selected modules have been uninstalled.'), t('Modules status has been updated.')); @@ -153,7 +153,7 @@ class EnableDisableTestCase extends ModuleTestCase { // Reinstall (and enable) aggregator module. $edit = array(); $edit['modules[Core][aggregator][enable]'] = 'aggregator'; - $this->drupalPost('admin/build/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); } } @@ -177,7 +177,7 @@ class ModuleDependencyTestCase extends ModuleTestCase { // Attempt to enable content translation without locale enabled. $edit = array(); $edit['modules[Core][translation][enable]'] = 'translation'; - $this->drupalPost('admin/build/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/modules', $edit, t('Save configuration')); $this->assertText(t('Some required modules must be enabled'), t('Dependecy required.')); $this->assertModules(array('translation', 'locale'), FALSE); @@ -214,7 +214,7 @@ class ModuleRequiredTestCase extends ModuleTestCase { */ function testDisableRequired() { $required_modules = drupal_required_modules(); - $this->drupalGet('admin/build/modules'); + $this->drupalGet('admin/structure/modules'); foreach ($required_modules as $module) { // Check to make sure the checkbox for required module is not found. $this->assertNoFieldByName('modules[Core][' . $module . '][enable]'); @@ -410,7 +410,7 @@ class AdminOverviewTestCase extends DrupalWebTestCase { $permissions = array(); $permissions[] = 'access administration pages'; $permissions[] = 'administer nodes'; // Content management, Comment. - $permissions[] = 'administer blocks'; // Site building, Block. + $permissions[] = 'administer blocks'; // Structure, Block. $permissions[] = 'administer filters'; // Site configuration, Filter. $permissions[] = 'administer users'; // User management, User. $permissions[] = 'access site reports'; // Reports, Database logging. @@ -418,7 +418,7 @@ class AdminOverviewTestCase extends DrupalWebTestCase { $this->drupalLogin($admin_user2); $this->drupalGet('admin'); - $this->checkOverview(array(t('Content management'), t('User management'), t('Reports'), t('Site building'), t('Site configuration'))); + $this->checkOverview(array(t('Content management'), t('User management'), t('Reports'), t('Structure'), t('Site configuration'))); $this->drupalGet('admin/by-module'); $this->checkOverview(array(t('Node'), t('Block'), t('Filter'), t('User'), t('Database logging'))); @@ -457,7 +457,7 @@ class AdminOverviewTestCase extends DrupalWebTestCase { // Make sure menu items without children are hidden. $this->assertNoLink(t('Site configuration')); - $this->assertNoLink(t('Site building')); + $this->assertNoLink(t('Structure')); $this->assertNoLink(t('User management')); $this->assertNoLink(t('Reports')); } @@ -796,13 +796,13 @@ class SystemBlockTestCase extends DrupalWebTestCase { */ function testPoweredByBlock() { // Set block title and some settings to confirm that the interface is availble. - $this->drupalPost('admin/build/block/configure/system/powered-by', array('title' => $this->randomName(8), 'color' => 'powered-black', 'size' => '135x42'), t('Save block')); + $this->drupalPost('admin/structure/block/configure/system/powered-by', array('title' => $this->randomName(8), 'color' => 'powered-black', 'size' => '135x42'), t('Save block')); $this->assertText(t('The block configuration has been saved.'), t('Block configuration set.')); // Set the powered-by block to the footer region. $edit = array(); $edit['system_powered-by[region]'] = 'footer'; - $this->drupalPost('admin/build/block', $edit, t('Save blocks')); + $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); $this->assertText(t('The block settings have been updated.'), t('Block successfully move to footer region.')); // Confirm that the block is being displayed. @@ -811,7 +811,7 @@ class SystemBlockTestCase extends DrupalWebTestCase { // Set the block to the disabled region. $edit = array(); $edit['system_powered-by[region]'] = '-1'; - $this->drupalPost('admin/build/block', $edit, t('Save blocks')); + $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); // Confirm that the block is hidden. $this->assertNoRaw('id="block-system-powered-by"', t('Block no longer appears on page.')); @@ -819,8 +819,8 @@ class SystemBlockTestCase extends DrupalWebTestCase { // For convenience of developers, set the block to it's default settings. $edit = array(); $edit['system_powered-by[region]'] = 'footer'; - $this->drupalPost('admin/build/block', $edit, t('Save blocks')); - $this->drupalPost('admin/build/block/configure/system/powered-by', array('title' => '', 'color' => 'powered-blue', 'size' => '80x15'), t('Save block')); + $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); + $this->drupalPost('admin/structure/block/configure/system/powered-by', array('title' => '', 'color' => 'powered-blue', 'size' => '80x15'), t('Save block')); } } @@ -934,7 +934,7 @@ class SystemThemeFunctionalTest extends DrupalWebTestCase { 'admin_theme' => 'garland', 'node_admin_theme' => TRUE, ); - $this->drupalPost('admin/build/themes', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/themes', $edit, t('Save configuration')); $this->drupalGet('admin'); $this->assertRaw('themes/garland', t('Administration theme used on an administration page.')); @@ -952,7 +952,7 @@ class SystemThemeFunctionalTest extends DrupalWebTestCase { $edit = array( 'node_admin_theme' => FALSE, ); - $this->drupalPost('admin/build/themes', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/themes', $edit, t('Save configuration')); $this->drupalGet('admin'); $this->assertRaw('themes/garland', t('Administration theme used on an administration page.')); @@ -966,7 +966,7 @@ class SystemThemeFunctionalTest extends DrupalWebTestCase { 'admin_theme' => '0', 'node_admin_theme' => FALSE, ); - $this->drupalPost('admin/build/themes', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/themes', $edit, t('Save configuration')); $this->drupalGet('admin'); $this->assertRaw('themes/garland', t('Site default theme used on administration page.')); |