diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-18 03:33:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-18 03:33:43 +0000 |
commit | d7a7ec64e0e10c8238e6d795d90b1fb9a585e535 (patch) | |
tree | 8ec5bca951d52ba43e468edf7b89a3d948e12ff1 /modules/path | |
parent | f00065740b4ce4c7d92d110a13746e94baae538e (diff) | |
download | brdo-d7a7ec64e0e10c8238e6d795d90b1fb9a585e535.tar.gz brdo-d7a7ec64e0e10c8238e6d795d90b1fb9a585e535.tar.bz2 |
- Patch #678590 by asimmonds, Dave Reid, Damien Tournoud: fixed path alias link being below submit button on taxonomy term add.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index 143e04de8..8f9990300 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -241,12 +241,12 @@ function path_form_taxonomy_form_term_alter(&$form, $form_state) { 'alias' => '', 'language' => LANGUAGE_NONE, ); - $form['identification']['path'] = array( + $form['path'] = array( '#access' => user_access('create url aliases') || user_access('administer url aliases'), '#tree' => TRUE, '#element_validate' => array('path_form_element_validate'), ); - $form['identification']['path']['alias'] = array( + $form['path']['alias'] = array( '#type' => 'textfield', '#title' => t('URL alias'), '#default_value' => $path['alias'], @@ -254,9 +254,9 @@ function path_form_taxonomy_form_term_alter(&$form, $form_state) { '#weight' => 0, '#description' => t("Optionally specify an alternative URL by which this term can be accessed. Use a relative path and don't add a trailing slash or the URL alias won't work."), ); - $form['identification']['path']['pid'] = array('#type' => 'value', '#value' => $path['pid']); - $form['identification']['path']['source'] = array('#type' => 'value', '#value' => $path['source']); - $form['identification']['path']['language'] = array('#type' => 'value', '#value' => $path['language']); + $form['path']['pid'] = array('#type' => 'value', '#value' => $path['pid']); + $form['path']['source'] = array('#type' => 'value', '#value' => $path['source']); + $form['path']['language'] = array('#type' => 'value', '#value' => $path['language']); } } @@ -305,4 +305,3 @@ function path_taxonomy_term_delete($term) { // Delete all aliases associated with this term. path_delete(array('source' => 'taxonomy/term/' . $term->tid)); } - |