diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-22 18:26:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-22 18:26:24 +0000 |
commit | 81bebc01fdff19a49f15accad0c7ac5d0431ed7d (patch) | |
tree | eb6709e63c54db64fc4a965ab6ba426140e910c4 /modules/path | |
parent | f6b7f7551220aa573ffb764dcf6c73163a409ec0 (diff) | |
download | brdo-81bebc01fdff19a49f15accad0c7ac5d0431ed7d.tar.gz brdo-81bebc01fdff19a49f15accad0c7ac5d0431ed7d.tar.bz2 |
- Patch #8500 by jseng (modified/simplified): improved usability of editing
URL aliases.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index 04bb8e9ac..7be86e843 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -55,7 +55,7 @@ function conf_url_rewrite(\$path, \$mode = 'incoming') { */ function path_menu() { $items = array(); - $items[] = array('path' => 'admin/path', 'title' => t('url aliasing'), + $items[] = array('path' => 'admin/path', 'title' => t('url aliases'), 'callback' => 'path_admin', 'access' => user_access('administer url aliases')); $items[] = array('path' => 'admin/path/edit', 'title' => t('edit alias'), @@ -86,7 +86,7 @@ function path_admin() { */ function path_admin_edit($pid = 0) { if ($_POST['op'] == t('Create new alias') || $_POST['op'] == t('Update alias')) { - $output = path_save($_POST['edit']); + path_save($_POST['edit']); } else { if ($pid) { @@ -95,8 +95,9 @@ function path_admin_edit($pid = 0) { else { $output = path_form(); } + + print theme('page', $output); } - print theme('page', $output); } /** @@ -319,8 +320,7 @@ function path_save($edit) { } drupal_set_message(t('the alias has been saved.')); - - return path_overview(); + drupal_goto('admin/path'); } } |