summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-12 23:51:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-12 23:51:19 +0000
commit049a8896f5a2018491a536a889feb5a21d71b973 (patch)
treeb73a2ebb4999b184ffe9a840a8e9474a7d9c4972 /modules
parent634139528322a045b07839fb9d8deea8ddb34230 (diff)
downloadbrdo-049a8896f5a2018491a536a889feb5a21d71b973.tar.gz
brdo-049a8896f5a2018491a536a889feb5a21d71b973.tar.bz2
#545952 by yoroy and Gábor Hojtsy: move modules to config/modules.
Diffstat (limited to 'modules')
-rw-r--r--modules/help/help.module2
-rw-r--r--modules/system/system.admin.inc14
-rw-r--r--modules/system/system.css2
-rw-r--r--modules/system/system.install2
-rw-r--r--modules/system/system.module41
-rw-r--r--modules/system/system.test14
-rw-r--r--modules/update/update.compare.inc2
-rw-r--r--modules/update/update.module4
-rw-r--r--modules/user/user.test2
9 files changed, 46 insertions, 37 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index c925d5be1..a8be2739e 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -39,7 +39,7 @@ function help_help($path, $arg) {
$output = '<p>' . t('Please follow these steps to set up and start using your website:') . '</p>';
$output .= '<ol>';
$output .= '<li>' . t('<strong>Configure your website</strong> Once logged in, visit the <a href="@admin">administration section</a>, where you can <a href="@config">customize and configure</a> all aspects of your website.', array('@admin' => url('admin'), '@config' => url('admin/settings'))) . '</li>';
- $output .= '<li>' . t('<strong>Enable additional functionality</strong> Next, visit the <a href="@modules">module list</a> and enable features which suit your specific needs. You can find additional modules in the <a href="@download_modules">Drupal modules download section</a>.', array('@modules' => url('admin/structure/modules'), '@download_modules' => 'http://drupal.org/project/modules')) . '</li>';
+ $output .= '<li>' . t('<strong>Enable additional functionality</strong> Next, visit the <a href="@modules">module list</a> and enable features which suit your specific needs. You can find additional modules in the <a href="@download_modules">Drupal modules download section</a>.', array('@modules' => url('admin/config/modules'), '@download_modules' => 'http://drupal.org/project/modules')) . '</li>';
$output .= '<li>' . t('<strong>Customize your website design</strong> To change the "look and feel" of your website, visit the <a href="@themes">themes section</a>. You may choose from one of the included themes or download additional themes from the <a href="@download_themes">Drupal themes download section</a>.', array('@themes' => url('admin/appearance'), '@download_themes' => 'http://drupal.org/project/themes')) . '</li>';
$output .= '<li>' . t('<strong>Start posting content</strong> Finally, you can <a href="@content">add new content</a> for your website.', array('@content' => url('node/add'))) . '</li>';
$output .= '</ol>';
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index a77472b83..b0ff9706b 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -729,7 +729,7 @@ function system_modules($form_state = array()) {
'#type' => 'submit',
'#value' => t('Save configuration'),
);
- $form['#action'] = url('admin/structure/modules/list/confirm');
+ $form['#action'] = url('admin/config/modules/list/confirm');
return $form;
}
@@ -851,7 +851,7 @@ function system_modules_confirm_form($modules, $storage) {
$form = confirm_form(
$form,
t('Some required modules must be enabled'),
- 'admin/structure/modules',
+ 'admin/config/modules',
t('Would you like to continue with enabling the above?'),
t('Continue'),
t('Cancel'));
@@ -1001,7 +1001,7 @@ function system_modules_submit($form, &$form_state) {
drupal_clear_css_cache();
drupal_clear_js_cache();
- $form_state['redirect'] = 'admin/structure/modules';
+ $form_state['redirect'] = 'admin/config/modules';
// Notify locale module about module changes, so translations can be
// imported. This might start a batch, and only return to the redirect
@@ -1067,7 +1067,7 @@ function system_modules_uninstall($form_state = NULL) {
'#type' => 'submit',
'#value' => t('Uninstall'),
);
- $form['#action'] = url('admin/structure/modules/uninstall/confirm');
+ $form['#action'] = url('admin/config/modules/uninstall/confirm');
}
else {
$form['modules'] = array();
@@ -1108,7 +1108,7 @@ function system_modules_uninstall_confirm_form($storage) {
$form = confirm_form(
$form,
t('Confirm uninstall'),
- 'admin/structure/modules/uninstall',
+ 'admin/config/modules/uninstall',
t('Would you like to continue with uninstalling the above?'),
t('Uninstall'),
t('Cancel'));
@@ -1123,7 +1123,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/structure/modules/uninstall');
+ drupal_goto('admin/config/modules/uninstall');
}
}
@@ -1141,7 +1141,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/structure/modules/uninstall';
+ $form_state['redirect'] = 'admin/config/modules/uninstall';
}
else {
$form_state['storage'] = $form_state['values'];
diff --git a/modules/system/system.css b/modules/system/system.css
index 1fe0eb55b..8e020a33e 100644
--- a/modules/system/system.css
+++ b/modules/system/system.css
@@ -506,7 +506,7 @@ html.js .js-hide {
}
/*
-** Styles for the system modules page (admin/structure/modules)
+** Styles for the system modules page (admin/config/modules)
*/
#system-modules div.incompatible {
font-weight: bold;
diff --git a/modules/system/system.install b/modules/system/system.install
index b906e83ea..784f09776 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -283,7 +283,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/structure/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/config/modules'))),
);
}
else {
diff --git a/modules/system/system.module b/modules/system/system.module
index ad08e46a7..18925fd91 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -92,7 +92,7 @@ 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/structure/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) . '</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/config/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/appearance'), '@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/config/development/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>';
@@ -111,13 +111,13 @@ 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/structure/modules':
+ case 'admin/config/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/settings/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/settings/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/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/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/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>';
@@ -525,12 +525,6 @@ function system_menu() {
'access callback' => 'system_admin_menu_block_access',
'access arguments' => array('admin/settings', 'access administration pages'),
);
- $items['admin/config'] = array(
- 'title' => 'Configuration and modules',
- 'page callback' => 'system_admin_config_page',
- 'position' => 'right',
- 'access arguments' => array('access administration pages'),
- );
$items['admin/structure'] = array(
'title' => 'Structure',
'description' => 'Control how your site looks and feels.',
@@ -577,30 +571,45 @@ function system_menu() {
);
}
- // Modules.
- $items['admin/structure/modules'] = array(
+ // Configuration and modules.
+ $items['admin/config'] = array(
+ 'title' => 'Configuration and modules',
+ 'page callback' => 'system_admin_config_page',
+ 'access arguments' => array('access administration pages'),
+ );
+ $items['admin/config/config'] = array(
+ 'title' => 'Configuration',
+ 'access callback' => array('user_access'),
+ 'access arguments' => array('administer site configuration'),
+ 'type' => MENU_DEFAULT_LOCAL_TASK,
+ 'weight' => -10,
+ );
+ $items['admin/config/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 callback' => array('user_access'),
'access arguments' => array('administer site configuration'),
+ 'type' => MENU_LOCAL_TASK,
+ 'weight' => 10,
);
- $items['admin/structure/modules/list'] = array(
+ $items['admin/config/modules/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
- $items['admin/structure/modules/list/confirm'] = array(
+ $items['admin/config/modules/list/confirm'] = array(
'title' => 'List',
'access arguments' => array('administer site configuration'),
'type' => MENU_CALLBACK,
);
- $items['admin/structure/modules/uninstall'] = array(
+ $items['admin/config/modules/uninstall'] = array(
'title' => 'Uninstall',
'page arguments' => array('system_modules_uninstall'),
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_TASK,
);
- $items['admin/structure/modules/uninstall/confirm'] = array(
+ $items['admin/config/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 738d3119b..b12867175 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/structure/modules', $edit, t('Save configuration'));
+ $this->drupalPost('admin/config/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/structure/modules', $edit, t('Save configuration'));
+ $this->drupalPost('admin/config/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/structure/modules/uninstall', $edit, t('Uninstall'));
+ $this->drupalPost('admin/config/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/structure/modules', $edit, t('Save configuration'));
+ $this->drupalPost('admin/config/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/structure/modules', $edit, t('Save configuration'));
+ $this->drupalPost('admin/config/modules', $edit, t('Save configuration'));
$this->assertText(t('Some required modules must be enabled'), t('Dependecy required.'));
$this->assertModules(array('translation', 'locale'), FALSE);
@@ -251,7 +251,7 @@ class ModuleVersionTestCase extends ModuleTestCase {
variable_set('dependencies', $dependencies);
$n = count($dependencies);
for ($i = 0; $i < $n; $i++) {
- $this->drupalGet('admin/structure/modules');
+ $this->drupalGet('admin/config/modules');
$checkbox = $this->xpath('//input[@id="edit-modules-Testing-module-test-enable"]');
$this->assertEqual(!empty($checkbox[0]['disabled']), $i % 2, $dependencies[$i]);
}
@@ -275,7 +275,7 @@ class ModuleRequiredTestCase extends ModuleTestCase {
*/
function testDisableRequired() {
$required_modules = drupal_required_modules();
- $this->drupalGet('admin/structure/modules');
+ $this->drupalGet('admin/config/modules');
foreach ($required_modules as $module) {
// Check to make sure the checkbox for required module is not found.
$this->assertNoFieldByName('modules[Core][' . $module . '][enable]');
diff --git a/modules/update/update.compare.inc b/modules/update/update.compare.inc
index 9e62cbdd1..886f83b1a 100644
--- a/modules/update/update.compare.inc
+++ b/modules/update/update.compare.inc
@@ -616,7 +616,7 @@ function update_project_cache($cid) {
// On certain paths, we should clear the cache and recompute the projects or
// update status of the site to avoid presenting stale information.
$q = $_GET['q'];
- $paths = array('admin/structure/modules', 'admin/appearance', 'admin/reports', 'admin/reports/updates', 'admin/reports/status', 'admin/reports/updates/check');
+ $paths = array('admin/config/modules', 'admin/appearance', 'admin/reports', 'admin/reports/updates', 'admin/reports/status', 'admin/reports/updates/check');
if (in_array($q, $paths)) {
_update_cache_clear($cid);
}
diff --git a/modules/update/update.module b/modules/update/update.module
index e99353a03..b418f1ebb 100644
--- a/modules/update/update.module
+++ b/modules/update/update.module
@@ -73,7 +73,7 @@ function update_help($path, $arg) {
$output .= '<p>' . t('Each time Drupal core or a contributed module or theme is updated, it is important that <a href="@update-php">update.php</a> is run.', array('@update-php' => url($base_url . '/update.php', array('external' => TRUE)))) . '</p>';
return $output;
case 'admin/appearance':
- case 'admin/structure/modules':
+ case 'admin/config/modules':
include_once DRUPAL_ROOT . '/includes/install.inc';
$status = update_requirements('runtime');
foreach (array('core', 'contrib') as $report_type) {
@@ -96,7 +96,7 @@ function update_help($path, $arg) {
case 'admin/help#update':
$output = '<p>' . t("The Update status module periodically checks for new versions of your site's software (including contributed modules and themes), and alerts you to available updates.") . '</p>';
$output .= '<p>' . t('The <a href="@update-report">report of available updates</a> will alert you when new releases are available for download. You may configure options for update checking frequency and notifications at the <a href="@update-settings">Update status module settings page</a>.', array('@update-report' => url('admin/reports/updates'), '@update-settings' => url('admin/settings/updates'))) . '</p>';
- $output .= '<p>' . t('Please note that in order to provide this information, anonymous usage statistics are sent to drupal.org. If desired, you may disable the Update status module from the <a href="@modules">module administration page</a>.', array('@modules' => url('admin/structure/modules'))) . '</p>';
+ $output .= '<p>' . t('Please note that in order to provide this information, anonymous usage statistics are sent to drupal.org. If desired, you may disable the Update status module from the <a href="@modules">module administration page</a>.', array('@modules' => url('admin/config/modules'))) . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@update">Update status module</a>.', array('@update' => 'http://drupal.org/handbook/modules/update')) . '</p>';
return $output;
diff --git a/modules/user/user.test b/modules/user/user.test
index b382c239b..6a999bad3 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -899,7 +899,7 @@ class UserPermissionsTestCase extends DrupalWebTestCase {
// permission is assigned by default.
$edit = array();
$edit['modules[Core][aggregator][enable]'] = TRUE;
- $this->drupalPost('admin/structure/modules', $edit, t('Save configuration'));
+ $this->drupalPost('admin/config/modules', $edit, t('Save configuration'));
$this->assertTrue(user_access('administer news feeds', $this->admin_user, TRUE), t('The permission was automatically assigned to the administrator role'));
}