@@ -27,7 +27,7 @@ function contact_help($path, $arg) {
return$output;
case'admin/structure/contact':
$output='<p>'.t('Add one or more categories to set up your site-wide <a href="@form">contact form</a>. You can <a href="@settings">customize the information above the contact form</a> on the settings page.',array('@settings'=>url('admin/structure/contact/settings'),'@form'=>url('contact'))).'</p>';if(!module_exists('menu')){
$menu_note=t('The menu item can be configured only if the menu module is <a href="@modules-page">enabled</a>.',array('@modules-page'=>url('admin/config/modules')));
$menu_note=t('The menu item can be configured only if the menu module is <a href="@modules-page">enabled</a>.',array('@modules-page'=>url('admin/modules')));
@@ -147,7 +147,7 @@ function field_help($path, $arg) {
$output.='<h3>'.t('Uses').'</h3>';
$output.='<dl>';
$output.='<dt>'.t('Enabling field types').'</dt>';
$output.='<dd>'.t('The Field module provides the infrastructure for fields and field attachment; the field types and input widgets themselves are provided by additional modules. Some of the modules are required; the optional modules can be enabled from the <a href="@modules">Modules administration page</a>. Drupal core includes the following field type modules: Number (required), Text (required), List (required), Taxonomy (optional), Image (optional), and File (optional); the required Options module provides input widgets for other field modules. Additional fields and widgets may be provided by contributed modules, which you can find in the <a href="@contrib">contributed module section of Drupal.org</a>. Currently enabled field and input widget modules:',array('@modules'=>url('admin/config/modules'),'@contrib'=>'http://drupal.org/project/modules','@options'=>url('admin/help/options')));
$output.='<dd>'.t('The Field module provides the infrastructure for fields and field attachment; the field types and input widgets themselves are provided by additional modules. Some of the modules are required; the optional modules can be enabled from the <a href="@modules">Modules administration page</a>. Drupal core includes the following field type modules: Number (required), Text (required), List (required), Taxonomy (optional), Image (optional), and File (optional); the required Options module provides input widgets for other field modules. Additional fields and widgets may be provided by contributed modules, which you can find in the <a href="@contrib">contributed module section of Drupal.org</a>. Currently enabled field and input widget modules:',array('@modules'=>url('admin/modules'),'@contrib'=>'http://drupal.org/project/modules','@options'=>url('admin/help/options')));
// Make a list of all widget and field modules currently enabled, in
// order by displayed module name (module names are not translated).
@@ -41,7 +41,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/config'))).'</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>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/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>';
@@ -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'))),
@@ -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.',
@@ -202,7 +202,7 @@ class ModuleDependencyTestCase extends ModuleTestCase {
functiontestMissingModules(){
// 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
$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 {
@@ -80,7 +80,7 @@ function update_help($path, $arg) {
return'<p>'.t('Here you can find information about available updates for your installed modules and themes. Note that each module or theme is part of a "project", which may or may not have the same name, and might include multiple modules or themes within it.').'</p>';
case'admin/appearance':
case'admin/config/modules':
case'admin/modules':
module_load_install('update');
$status=update_requirements('runtime');
foreach(array('core','contrib')as$report_type){
...
...
@@ -97,8 +97,8 @@ function update_help($path, $arg) {
case'admin/appearance/update':
case'admin/appearance/install':
case'admin/config/modules/update':
case'admin/config/modules/install':
case'admin/modules/update':
case'admin/modules/install':
case'admin/reports/updates/update':
case'admin/reports/updates/install':
case'admin/reports/updates/settings':
...
...
@@ -110,7 +110,7 @@ function update_help($path, $arg) {
case'admin/help#update':
$output='';
$output.='<h3>'.t('About').'</h3>';
$output.='<p>'.t("The Update manager module periodically checks for new versions of your site's software (including contributed modules and themes), and alerts administrators to available updates. In order to provide update information, anonymous usage statistics are sent to Drupal.org. If desired, you may disable the Update manager module from the <a href='@modules'>Module administration page</a>. For more information, see the online handbook entry for <a href='@update'>Update manager module</a>.",array('@update'=>'http://drupal.org/handbook/modules/update','@modules'=>url('admin/config/modules'))).'</p>';
$output.='<p>'.t("The Update manager module periodically checks for new versions of your site's software (including contributed modules and themes), and alerts administrators to available updates. In order to provide update information, anonymous usage statistics are sent to Drupal.org. If desired, you may disable the Update manager module from the <a href='@modules'>Module administration page</a>. For more information, see the online handbook entry for <a href='@update'>Update manager module</a>.",array('@update'=>'http://drupal.org/handbook/modules/update','@modules'=>url('admin/modules'))).'</p>';
// Only explain the Update manager if it has not been disabled.
if(update_manager_access()){
$output.='<p>'.t('The Update manager also allows administrators to update and install modules and themes through the administration interface.').'</p>';
...
...
@@ -122,9 +122,9 @@ function update_help($path, $arg) {
// Only explain the Update manager if it has not been disabled.
if(update_manager_access()){
$output.='<dt>'.t('Performing updates through the user interface').'</dt>';
$output.='<dd>'.t('The Update manager module allows administrators to perform updates directly through the administration interface. At the top of the <a href="@modules_page">modules</a> and <a href="@themes_page">themes</a> pages you will see a link to update to new releases. This will direct you to the <a href="@update-page">update page</a> where you see a listing of all the missing updates and confirm which ones you want to upgrade. From there, you are prompted for your FTP/SSH password, which then transfers the files into your Drupal installation, overwriting your old files. More detailed instructions can be found in the <a href="@update">online handbook</a>.',array('@modules_page'=>url('admin/config/modules'),'@themes_page'=>url('admin/appearance'),'@update-page'=>url('admin/reports/updates/update'),'@update'=>'http://drupal.org/handbook/modules/update')).'</dd>';
$output.='<dd>'.t('The Update manager module allows administrators to perform updates directly through the administration interface. At the top of the <a href="@modules_page">modules</a> and <a href="@themes_page">themes</a> pages you will see a link to update to new releases. This will direct you to the <a href="@update-page">update page</a> where you see a listing of all the missing updates and confirm which ones you want to upgrade. From there, you are prompted for your FTP/SSH password, which then transfers the files into your Drupal installation, overwriting your old files. More detailed instructions can be found in the <a href="@update">online handbook</a>.',array('@modules_page'=>url('admin/modules'),'@themes_page'=>url('admin/appearance'),'@update-page'=>url('admin/reports/updates/update'),'@update'=>'http://drupal.org/handbook/modules/update')).'</dd>';
$output.='<dt>'.t('Installing new modules and themes through the user interface').'</dt>';
$output.='<dd>'.t('You can also install new modules and themes in the same fashion, through the <a href="@install">install page</a>, or by clicking the <em>Install new module/theme</em> link at the top of the <a href="@modules_page">modules</a> and <a href="@themes_page">themes</a> pages. In this case, you are prompted to provide either the URL to the download, or to upload a packaged release file from your local computer.',array('@modules_page'=>url('admin/config/modules'),'@themes_page'=>url('admin/appearance'),'@install'=>url('admin/reports/updates/install'))).'</dd>';
$output.='<dd>'.t('You can also install new modules and themes in the same fashion, through the <a href="@install">install page</a>, or by clicking the <em>Install new module/theme</em> link at the top of the <a href="@modules_page">modules</a> and <a href="@themes_page">themes</a> pages. In this case, you are prompted to provide either the URL to the download, or to upload a packaged release file from your local computer.',array('@modules_page'=>url('admin/modules'),'@themes_page'=>url('admin/appearance'),'@install'=>url('admin/reports/updates/install'))).'</dd>';
}
$output.='</dl>';
return$output;
...
...
@@ -192,7 +192,7 @@ function update_menu() {
// customize the appearance as needed.
$paths=array(
'report'=>'admin/reports/updates',
'module'=>'admin/config/modules',
'module'=>'admin/modules',
'theme'=>'admin/appearance',
);
foreach($pathsas$context=>$path){
...
...
@@ -218,8 +218,8 @@ function update_menu() {
// Customize the titles of the action links depending on where they appear.
$items['admin/reports/updates/install']['title']='Install new module or theme';
$items['admin/reports/updates/update']['title']='Update existing modules and themes';
$items['admin/config/modules/install']['title']='Install new module';