summaryrefslogtreecommitdiff
path: root/modules/update
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-20 21:57:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-20 21:57:50 +0000
commit7c31bcdeac94c254130845c3959753b68c36ea1e (patch)
tree334f1a2abbd9de134fba66bcb435b3b2e6c57a1b /modules/update
parent6dcfce0127bc7ea3f4bb843ddcaf44becd98d9fa (diff)
downloadbrdo-7c31bcdeac94c254130845c3959753b68c36ea1e.tar.gz
brdo-7c31bcdeac94c254130845c3959753b68c36ea1e.tar.bz2
#165140 by dww: rename logs to reports (usability improvement)
Diffstat (limited to 'modules/update')
-rw-r--r--modules/update/update.fetch.inc6
-rw-r--r--modules/update/update.module28
-rw-r--r--modules/update/update.report.inc2
-rw-r--r--modules/update/update.settings.inc2
4 files changed, 19 insertions, 19 deletions
diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc
index 7a3a9765e..a79e71c3a 100644
--- a/modules/update/update.fetch.inc
+++ b/modules/update/update.fetch.inc
@@ -16,7 +16,7 @@ function update_manual_status() {
else {
drupal_set_message(t('Unable to fetch any information about available new releases and updates.'), 'error');
}
- drupal_goto('admin/logs/updates');
+ drupal_goto('admin/reports/updates');
}
/**
@@ -45,10 +45,10 @@ function _update_refresh() {
$frequency = variable_get('update_check_frequency', 1);
cache_set('update_info', $available, 'cache_update', time() + (60 * 60 * 24 * $frequency));
variable_set('update_last_check', time());
- watchdog('update', 'Fetched information about all available new releases and updates.', array(), WATCHDOG_NOTICE, l('view', 'admin/logs/updates'));
+ watchdog('update', 'Fetched information about all available new releases and updates.', array(), WATCHDOG_NOTICE, l('view', 'admin/reports/updates'));
}
else {
- watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l('view', 'admin/logs/updates'));
+ watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l('view', 'admin/reports/updates'));
}
return $available;
}
diff --git a/modules/update/update.module b/modules/update/update.module
index 8a6554840..bf006230c 100644
--- a/modules/update/update.module
+++ b/modules/update/update.module
@@ -6,7 +6,7 @@
* The "Update status" module checks for available updates of Drupal core and
* any installed contributed modules and themes. It warns site administrators
* if newer releases are available via the system status report
- * (admin/logs/status), the module and theme pages, and optionally via email.
+ * (admin/reports/status), the module and theme pages, and optionally via email.
*/
/**
@@ -46,7 +46,7 @@ define('UPDATE_UNKNOWN', 5);
*/
function update_help($path, $arg) {
switch ($path) {
- case 'admin/logs/updates':
+ case 'admin/reports/updates':
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/build/themes':
@@ -64,10 +64,10 @@ function update_help($path, $arg) {
}
}
}
- return '<p>'. t('See the <a href="@available_updates">available updates</a> page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/logs/updates'))) .'</p>';
+ return '<p>'. t('See the <a href="@available_updates">available updates</a> page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/reports/updates'))) .'</p>';
- case 'admin/logs/updates/settings':
- case 'admin/logs/status':
+ case 'admin/reports/updates/settings':
+ case 'admin/reports/status':
// These two pages don't need additional nagging.
break;
@@ -97,7 +97,7 @@ function update_help($path, $arg) {
function update_menu() {
$items = array();
- $items['admin/logs/updates'] = array(
+ $items['admin/reports/updates'] = array(
'title' => 'Available updates',
'description' => 'Get a status report about available updates for your installed modules and themes.',
'page callback' => 'update_status',
@@ -105,14 +105,14 @@ function update_menu() {
'file' => 'update.report.inc',
'weight' => 10,
);
- $items['admin/logs/updates/list'] = array(
+ $items['admin/reports/updates/list'] = array(
'title' => 'List',
'page callback' => 'update_status',
'access arguments' => array('administer site configuration'),
'file' => 'update.report.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
- $items['admin/logs/updates/settings'] = array(
+ $items['admin/reports/updates/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array('update_settings'),
@@ -120,7 +120,7 @@ function update_menu() {
'file' => 'update.settings.inc',
'type' => MENU_LOCAL_TASK,
);
- $items['admin/logs/updates/check'] = array(
+ $items['admin/reports/updates/check'] = array(
'title' => 'Manual update check',
'page callback' => 'update_manual_status',
'access arguments' => array('administer site configuration'),
@@ -266,8 +266,8 @@ function update_form_alter(&$form, $form_state, $form_id) {
function _update_no_data() {
$destination = drupal_get_destination();
return t('No information is available about potential new releases for currently installed modules and themes. To check for updates, you may need to <a href="@run_cron">run cron</a> or you can <a href="@check_manually">check manually</a>. Please note that checking for available updates can take a long time, so please be patient.', array(
- '@run_cron' => url('admin/logs/status/run-cron', array('query' => $destination)),
- '@check_manually' => url('admin/logs/updates/check', array('query' => $destination)),
+ '@run_cron' => url('admin/reports/status/run-cron', array('query' => $destination)),
+ '@check_manually' => url('admin/reports/updates/check', array('query' => $destination)),
));
}
@@ -332,7 +332,7 @@ function update_mail($key, &$message, $params) {
foreach ($params as $msg_type => $msg_reason) {
$message['body'][] = _update_message_text($msg_type, $msg_reason, FALSE, $language);
}
- $message['body'][] = t('See the available updates page for more information:', array(), $langcode) ."\n". url('admin/logs/updates', array('absolute' => TRUE, 'language' => $language));
+ $message['body'][] = t('See the available updates page for more information:', array(), $langcode) ."\n". url('admin/reports/updates', array('absolute' => TRUE, 'language' => $language));
}
/**
@@ -340,7 +340,7 @@ function update_mail($key, &$message, $params) {
* of date or missing a security update.
*
* These error messages are shared by both update_requirements() for the
- * site-wide status report at admin/logs/status and in the body of the
+ * site-wide status report at admin/reports/status and in the body of the
* notification emails generated by update_cron().
*
* @param $msg_type
@@ -380,7 +380,7 @@ function _update_message_text($msg_type, $msg_reason, $report_link = FALSE, $lan
}
if ($report_link) {
- $text .= ' '. t('See the <a href="@available_updates">available updates</a> page for more information.', array('@available_updates' => url('admin/logs/updates', array('language' => $language))), $langcode);
+ $text .= ' '. t('See the <a href="@available_updates">available updates</a> page for more information.', array('@available_updates' => url('admin/reports/updates', array('language' => $language))), $langcode);
}
return $text;
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc
index b3508cbcc..84c34c40c 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -26,7 +26,7 @@ function update_status() {
function theme_update_report($data) {
$last = variable_get('update_last_check', 0);
$output = '<div class="update checked">'. t('Last checked: ') . ($last ? format_interval(time() - $last) .' '. t('ago') : t('Never'));
- $output .= ' <span class="check-manually">('. l(t('Check manually'), 'admin/logs/updates/check') .')</span>';
+ $output .= ' <span class="check-manually">('. l(t('Check manually'), 'admin/reports/updates/check') .')</span>';
$output .= "</div>\n";
if (!is_array($data)) {
diff --git a/modules/update/update.settings.inc b/modules/update/update.settings.inc
index b07f13cb1..855ee6497 100644
--- a/modules/update/update.settings.inc
+++ b/modules/update/update.settings.inc
@@ -40,7 +40,7 @@ function update_settings() {
'all' => t('All newer versions'),
'security' => t('Only security updates'),
),
- '#description' => t('If there are updates available of Drupal core or any of your installed modules and themes, your site will print an error message on the <a href="@status_report">status report</a>, the <a href="@modules_page">modules page</a>, and the <a href="@themes_page">themes page</a>. You can choose to only see these error messages if a security update is available, or to be notified about any newer versions.', array('@status_report' => url('admin/logs/status'), '@modules_page' => url('admin/build/modules'), '@themes_page' => url('admin/build/themes')))
+ '#description' => t('If there are updates available of Drupal core or any of your installed modules and themes, your site will print an error message on the <a href="@status_report">status report</a>, the <a href="@modules_page">modules page</a>, and the <a href="@themes_page">themes page</a>. You can choose to only see these error messages if a security update is available, or to be notified about any newer versions.', array('@status_report' => url('admin/reports/status'), '@modules_page' => url('admin/build/modules'), '@themes_page' => url('admin/build/themes')))
);
$form = system_settings_form($form);