diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-24 05:13:44 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-24 05:13:44 +0000 |
commit | cd7b8f099996c46a58b354ae262852d222306e74 (patch) | |
tree | 1e7725d67472a1c203ce418f90e2fb48716efd37 /modules/path | |
parent | dec6514c3b2d889c3a9fb19731e49e83d554392c (diff) | |
download | brdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.gz brdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.bz2 |
#320331 by Dave Reid, dww, John Morahan, cwgordon7, moshe weitzman, c960657, and smoothify: Turn custom_url_rewrite_inbound() and custom_url_rewrite_outbound() into hooks.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.admin.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc index dd9e3e0ad..b1fd47c00 100644 --- a/modules/path/path.admin.inc +++ b/modules/path/path.admin.inc @@ -105,7 +105,7 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali '#default_value' => $path['source'], '#maxlength' => 255, '#size' => 45, - '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.'), + '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), '#required' => TRUE, ); @@ -150,7 +150,8 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali * Verify that a URL alias is valid */ function path_admin_form_validate($form, &$form_state) { - $source = $form_state['values']['source']; + $source = &$form_state['values']['source']; + $source = drupal_get_normal_path($source); $alias = $form_state['values']['alias']; $pid = isset($form_state['values']['pid']) ? $form_state['values']['pid'] : 0; // Language is only set if locale module is enabled, otherwise save for all languages. |