From d7a7ec64e0e10c8238e6d795d90b1fb9a585e535 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 18 Jan 2010 03:33:43 +0000 Subject: - Patch #678590 by asimmonds, Dave Reid, Damien Tournoud: fixed path alias link being below submit button on taxonomy term add. --- modules/path/path.module | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/path') 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)); } - -- cgit v1.2.3