diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-05 12:50:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-05 12:50:28 +0000 |
commit | 0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7 (patch) | |
tree | f0dc6e87c58f3e0f7315e2808ab88a2f81ba1c52 /modules/path | |
parent | 4e9d1f7d1c97600113edc7bba3f49b59d0bdcb20 (diff) | |
download | brdo-0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7.tar.gz brdo-0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7.tar.bz2 |
- Patch #288039 by sun, ff1, agentrickard, fgm, ultimateboy: improved usability of the aliased URL admin page.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.admin.inc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc index 664f82d06..41853a945 100644 --- a/modules/path/path.admin.inc +++ b/modules/path/path.admin.inc @@ -42,9 +42,19 @@ function path_admin_overview($keys = NULL) { $rows = array(); $destination = drupal_get_destination(); while ($data = db_fetch_object($result)) { - $row = array(check_plain($data->dst), check_plain($data->src), l(t('edit'), "admin/build/path/edit/$data->pid", array('query' => $destination)), l(t('delete'), "admin/build/path/delete/$data->pid", array('query' => $destination))); + $row = array( + // If the system path maps to a different URL alias, highlight this table + // row to let the user know of old aliases. + 'class' => ($data->dst != drupal_get_path_alias($data->src, $data->language) ? 'warning' : NULL), + 'data' => array( + l($data->dst, $data->src), + l($data->src, $data->src, array('alias' => TRUE)), + l(t('edit'), "admin/build/path/edit/$data->pid", array('query' => $destination)), + l(t('delete'), "admin/build/path/delete/$data->pid", array('query' => $destination)), + ), + ); if ($multilanguage) { - array_splice($row, 2, 0, module_invoke('locale', 'language_name', $data->language)); + array_splice($row['data'], 2, 0, module_invoke('locale', 'language_name', $data->language)); } $rows[] = $row; } |