summaryrefslogtreecommitdiff
path: root/modules/path/path.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 08:03:08 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 08:03:08 +0000
commit7c447cc8a587507d9ddc60be96f6f354f89cc876 (patch)
tree2e0fe1ba1592ab72b9a754a8f405daf243133741 /modules/path/path.module
parent58d1270a7db4d0cb44196daec318c017cbdfd2d7 (diff)
downloadbrdo-7c447cc8a587507d9ddc60be96f6f354f89cc876.tar.gz
brdo-7c447cc8a587507d9ddc60be96f6f354f89cc876.tar.bz2
#80804 by stefan nagtegaal. Add units for paths.
Diffstat (limited to 'modules/path/path.module')
-rw-r--r--modules/path/path.module19
1 files changed, 17 insertions, 2 deletions
diff --git a/modules/path/path.module b/modules/path/path.module
index 6e08057d4..1fcc5b000 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -184,8 +184,23 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL) {
function path_form($edit = '') {
$form['#base'] = 'path_form';
- $form['src'] = array('#type' => 'textfield', '#title' => t('Existing system path'), '#default_value' => $edit['src'], '#maxlength' => 64, '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.'));
- $form['dst'] = array('#type' => 'textfield', '#default_value' => $edit['dst'], '#maxlength' => 64, '#description' => t('Specify an alternative path by which this data can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'));
+ $form['src'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Existing system path'),
+ '#default_value' => $edit['src'],
+ '#maxlength' => 64,
+ '#size' => 45,
+ '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.'),
+ '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
+ );
+ $form['dst'] = array(
+ '#type' => 'textfield',
+ '#default_value' => $edit['dst'],
+ '#maxlength' => 64,
+ '#size' => 45,
+ '#description' => t('Specify an alternative path by which this data can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
+ '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
+ );
if ($edit['pid']) {
$form['pid'] = array('#type' => 'hidden', '#value' => $edit['pid']);