diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-04 21:31:52 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-04 21:31:52 +0000 |
commit | ec7ff41cc58d1604918e0e10aeeef1bed9dd5d52 (patch) | |
tree | f63b3b33a93418e2e267010f4c0e6bc11a1e0b65 /modules/system | |
parent | 2a8fc4edb08cd26b8314fcaa3f34489ebdad9e61 (diff) | |
download | brdo-ec7ff41cc58d1604918e0e10aeeef1bed9dd5d52.tar.gz brdo-ec7ff41cc58d1604918e0e10aeeef1bed9dd5d52.tar.bz2 |
#580868 by anarcat and Dave Reid: Make 'Modules' its own top-level admin link.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 14 | ||||
-rw-r--r-- | modules/system/system.css | 2 | ||||
-rw-r--r-- | modules/system/system.install | 2 | ||||
-rw-r--r-- | modules/system/system.module | 18 | ||||
-rw-r--r-- | modules/system/system.test | 24 | ||||
-rw-r--r-- | modules/system/system.updater.inc | 2 |
6 files changed, 31 insertions, 31 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 4097341d9..80aa7f33f 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -956,7 +956,7 @@ function system_modules($form, $form_state = array()) { '#type' => 'submit', '#value' => t('Save configuration'), ); - $form['#action'] = url('admin/config/modules/list/confirm'); + $form['#action'] = url('admin/modules/list/confirm'); return $form; } @@ -1098,7 +1098,7 @@ function system_modules_confirm_form($modules, $storage) { $form = confirm_form( $form, t('Some required modules must be enabled'), - 'admin/config/modules', + 'admin/modules', t('Would you like to continue with the above?'), t('Continue'), t('Cancel')); @@ -1247,7 +1247,7 @@ function system_modules_submit($form, &$form_state) { drupal_clear_css_cache(); drupal_clear_js_cache(); - $form_state['redirect'] = 'admin/config/modules'; + $form_state['redirect'] = 'admin/modules'; // Notify locale module about module changes, so translations can be // imported. This might start a batch, and only return to the redirect @@ -1311,7 +1311,7 @@ function system_modules_uninstall($form, $form_state = NULL) { '#type' => 'submit', '#value' => t('Uninstall'), ); - $form['#action'] = url('admin/config/modules/uninstall/confirm'); + $form['#action'] = url('admin/modules/uninstall/confirm'); } else { $form['modules'] = array(); @@ -1352,7 +1352,7 @@ function system_modules_uninstall_confirm_form($storage) { $form = confirm_form( $form, t('Confirm uninstall'), - 'admin/config/modules/uninstall', + 'admin/modules/uninstall', t('Would you like to continue with uninstalling the above?'), t('Uninstall'), t('Cancel')); @@ -1367,7 +1367,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/config/modules/uninstall'); + drupal_goto('admin/modules/uninstall'); } } @@ -1384,7 +1384,7 @@ function system_modules_uninstall_submit($form, &$form_state) { drupal_uninstall_modules($modules); drupal_set_message(t('The selected modules have been uninstalled.')); - $form_state['redirect'] = 'admin/config/modules/uninstall'; + $form_state['redirect'] = 'admin/modules/uninstall'; } else { $form_state['storage'] = $form_state['values']; diff --git a/modules/system/system.css b/modules/system/system.css index 5a6db4dc6..695f80c65 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -517,7 +517,7 @@ html.js .js-hide { } /* -** Styles for the system modules page (admin/config/modules) +** Styles for the system modules page (admin/modules) */ #system-modules div.incompatible { font-weight: bold; diff --git a/modules/system/system.install b/modules/system/system.install index f37b8266b..478a09279 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -307,7 +307,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/config/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/modules'))), ); } else { diff --git a/modules/system/system.module b/modules/system/system.module index 4c6ae6a35..84d2ee55d 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -70,7 +70,7 @@ function system_help($path, $arg) { $output .= '<h3>' . t('Uses') . '</h3>'; $output .= '<dl>'; $output .= '<dt>' . t('Managing modules') . '</dt>'; - $output .= '<dd>' . t('The System module allows users with the appropriate permissions to enable and disable modules on the <a href="@modules">Modules administration page</a>. Drupal comes with a number of core modules, and each module provides a discrete set of features and may be enabled or disabled depending on the needs of the site. Many 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/config/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) . '</dd>'; + $output .= '<dd>' . t('The System module allows users with the appropriate permissions to enable and disable modules on the <a href="@modules">Modules administration page</a>. Drupal comes with a number of core modules, and each module provides a discrete set of features and may be enabled or disabled depending on the needs of the site. Many 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/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) . '</dd>'; $output .= '<dt>' . t('Managing themes') . '</dt>'; $output .= '<dd>' . t('The System module allows users with the appropriate permissions to enable and disable themes on the <a href="@themes">Appearance administration page</a>. Themes 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/appearance'), '@drupal-themes' => 'http://drupal.org/project/themes')) . '</dd>'; $output .= '<dt>' . t('Managing caching') . '</dt>'; @@ -94,7 +94,7 @@ function system_help($path, $arg) { 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/appearance/settings'))) . '</p>'; case 'admin/appearance/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/config/modules': + case 'admin/modules': $output = '<p>' . t('Download additional <a href="@modules">contributed modules</a> to extend Drupal\'s functionality.', array('@modules' => 'http://drupal.org/project/modules')) . '</p>'; if (module_exists('update')) { if (update_manager_access()) { @@ -108,8 +108,8 @@ function system_help($path, $arg) { $output .= '<p>' . t('Regularly review available updates to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated. Enable the Update manager module to update and install modules and themes.', array('@update-php' => $base_url . '/update.php')) . '</p>'; } return $output; - case 'admin/config/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/config/modules'))) . '</p>'; + case 'admin/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/modules'))) . '</p>'; case 'admin/structure/block/manage': 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>'; @@ -656,7 +656,7 @@ function system_menu() { 'weight' => -10, 'file' => 'system.admin.inc', ); - $items['admin/config/modules'] = array( + $items['admin/modules'] = array( 'title' => 'Modules', 'description' => 'Enable or disable add-on modules for your site.', 'page callback' => 'drupal_get_form', @@ -666,23 +666,23 @@ function system_menu() { 'type' => MENU_LOCAL_TASK, 'weight' => 10, ); - $items['admin/config/modules/list'] = array( + $items['admin/modules/list'] = array( 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, ); - $items['admin/config/modules/list/confirm'] = array( + $items['admin/modules/list/confirm'] = array( 'title' => 'List', 'access arguments' => array('administer modules'), 'type' => MENU_CALLBACK, ); - $items['admin/config/modules/uninstall'] = array( + $items['admin/modules/uninstall'] = array( 'title' => 'Uninstall', 'page arguments' => array('system_modules_uninstall'), 'access arguments' => array('administer modules'), 'type' => MENU_LOCAL_TASK, 'file' => 'system.admin.inc', ); - $items['admin/config/modules/uninstall/confirm'] = array( + $items['admin/modules/uninstall/confirm'] = array( 'title' => 'Uninstall', 'access arguments' => array('administer modules'), 'type' => MENU_CALLBACK, diff --git a/modules/system/system.test b/modules/system/system.test index 608e3a6c1..3cfa20d1c 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/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/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/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/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/config/modules/uninstall', $edit, t('Uninstall')); + $this->drupalPost('admin/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/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/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/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/modules', $edit, t('Save configuration')); $this->assertText(t('Some required modules must be enabled'), t('Dependecy required.')); $this->assertModules(array('translation', 'locale'), FALSE); @@ -202,7 +202,7 @@ class ModuleDependencyTestCase extends ModuleTestCase { function testMissingModules() { // Test that the system_dependencies_test module is marked // as missing a dependency. - $this->drupalGet('admin/config/modules'); + $this->drupalGet('admin/modules'); $this->assertRaw(t('@module (<span class="admin-missing">missing</span>)', array('@module' => drupal_ucfirst('_missing_dependency'))), t('A module with missing dependencies is marked as such.')); $checkbox = $this->xpath('//input[@type="checkbox" and @disabled="disabled" and @name="modules[Testing][system_dependencies_test][enable]"]'); $this->assert(count($checkbox) == 1, t('Checkbox for the module is disabled.')); @@ -212,7 +212,7 @@ class ModuleDependencyTestCase extends ModuleTestCase { // Verify that the module is forced to be disabled when submitting // the module page. - $this->drupalPost('admin/config/modules', array(), t('Save configuration')); + $this->drupalPost('admin/modules', array(), t('Save configuration')); $this->assertText(t('The @module module is missing, so the following module will be disabled: @depends.', array('@module' => '_missing_dependency', '@depends' => 'system_dependencies_test')), t('The module missing dependencies will be disabled.')); // Confirm. @@ -277,7 +277,7 @@ class ModuleVersionTestCase extends ModuleTestCase { variable_set('dependencies', $dependencies); $n = count($dependencies); for ($i = 0; $i < $n; $i++) { - $this->drupalGet('admin/config/modules'); + $this->drupalGet('admin/modules'); $checkbox = $this->xpath('//input[@id="edit-modules-testing-module-test-enable"]'); $this->assertEqual(!empty($checkbox[0]['disabled']), $i % 2, $dependencies[$i]); } @@ -301,7 +301,7 @@ class ModuleRequiredTestCase extends ModuleTestCase { */ function testDisableRequired() { $required_modules = drupal_required_modules(); - $this->drupalGet('admin/config/modules'); + $this->drupalGet('admin/modules'); foreach ($required_modules as $module) { // Check to make sure the checkbox for required module is not found. $this->assertNoFieldByName('modules[Core][' . $module . '][enable]'); @@ -1082,11 +1082,11 @@ class SystemMainContentFallback extends DrupalWebTestCase { $edit = array(); // Disable the dashboard module, which depends on the block module. $edit['modules[Core][dashboard][enable]'] = FALSE; - $this->drupalPost('admin/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); // Disable the block module. $edit['modules[Core][block][enable]'] = FALSE; - $this->drupalPost('admin/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); module_list(TRUE); $this->assertFalse(module_exists('block'), t('Block module disabled.')); @@ -1120,7 +1120,7 @@ class SystemMainContentFallback extends DrupalWebTestCase { $this->drupalLogin($this->admin_user); $edit = array(); $edit['modules[Core][block][enable]'] = 'block'; - $this->drupalPost('admin/config/modules', $edit, t('Save configuration')); + $this->drupalPost('admin/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), t('Modules status has been updated.')); module_list(TRUE); $this->assertTrue(module_exists('block'), t('Block module re-enabled.')); diff --git a/modules/system/system.updater.inc b/modules/system/system.updater.inc index 8c23d915d..eb169b38f 100644 --- a/modules/system/system.updater.inc +++ b/modules/system/system.updater.inc @@ -67,7 +67,7 @@ class ModuleUpdater extends Updater implements DrupalUpdaterInterface { public function postInstallTasks() { return array( - l(t('Enable newly added modules in !project', array('!project' => $this->title)), 'admin/config/modules'), + l(t('Enable newly added modules in !project', array('!project' => $this->title)), 'admin/modules'), ); } |