From 7c31bcdeac94c254130845c3959753b68c36ea1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 20 Oct 2007 21:57:50 +0000 Subject: #165140 by dww: rename logs to reports (usability improvement) --- modules/update/update.fetch.inc | 6 +++--- modules/update/update.module | 28 ++++++++++++++-------------- modules/update/update.report.inc | 2 +- modules/update/update.settings.inc | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) (limited to 'modules/update') 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 '

'. 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.') .'

'; case 'admin/build/themes': @@ -64,10 +64,10 @@ function update_help($path, $arg) { } } } - return '

'. t('See the available updates page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/logs/updates'))) .'

'; + return '

'. t('See the available updates page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/reports/updates'))) .'

'; - 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 run cron or you can check manually. 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 available updates page for more information.', array('@available_updates' => url('admin/logs/updates', array('language' => $language))), $langcode); + $text .= ' '. t('See the available updates 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 = '
'. t('Last checked: ') . ($last ? format_interval(time() - $last) .' '. t('ago') : t('Never')); - $output .= ' ('. l(t('Check manually'), 'admin/logs/updates/check') .')'; + $output .= ' ('. l(t('Check manually'), 'admin/reports/updates/check') .')'; $output .= "
\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 status report, the modules page, and the themes page. 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 status report, the modules page, and the themes page. 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); -- cgit v1.2.3