comparison modules/path/path.admin.inc @ 15:4347c45bb494 6.7

Drupal 6.7
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:44 +0100
parents c1f4ac30525a
children
comparison
equal deleted inserted replaced
14:626fcabfa4b8 15:4347c45bb494
1 <?php 1 <?php
2 // $Id: path.admin.inc,v 1.7 2008/01/08 10:35:42 goba Exp $ 2 // $Id: path.admin.inc,v 1.7.2.1 2008/11/22 10:49:15 dries Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Administrative page callbacks for the path module. 6 * Administrative page callbacks for the path module.
7 */ 7 */
90 90
91 $form['src'] = array( 91 $form['src'] = array(
92 '#type' => 'textfield', 92 '#type' => 'textfield',
93 '#title' => t('Existing system path'), 93 '#title' => t('Existing system path'),
94 '#default_value' => $edit['src'], 94 '#default_value' => $edit['src'],
95 '#maxlength' => 64, 95 '#maxlength' => 128,
96 '#size' => 45, 96 '#size' => 45,
97 '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.'), 97 '#description' => t('Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.'),
98 '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), 98 '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='),
99 '#required' => TRUE, 99 '#required' => TRUE,
100 ); 100 );
101 $form['dst'] = array( 101 $form['dst'] = array(
102 '#type' => 'textfield', 102 '#type' => 'textfield',
103 '#title' => t('Path alias'), 103 '#title' => t('Path alias'),
104 '#default_value' => $edit['dst'], 104 '#default_value' => $edit['dst'],
105 '#maxlength' => 64, 105 '#maxlength' => 128,
106 '#size' => 45, 106 '#size' => 45,
107 '#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.'), 107 '#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.'),
108 '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), 108 '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='),
109 '#required' => TRUE, 109 '#required' => TRUE,
110 ); 110 );
196 $form['basic']['inline'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>'); 196 $form['basic']['inline'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>');
197 $form['basic']['inline']['filter'] = array( 197 $form['basic']['inline']['filter'] = array(
198 '#type' => 'textfield', 198 '#type' => 'textfield',
199 '#title' => '', 199 '#title' => '',
200 '#default_value' => $keys, 200 '#default_value' => $keys,
201 '#maxlength' => 64, 201 '#maxlength' => 128,
202 '#size' => 25, 202 '#size' => 25,
203 ); 203 );
204 $form['basic']['inline']['submit'] = array( 204 $form['basic']['inline']['submit'] = array(
205 '#type' => 'submit', 205 '#type' => 'submit',
206 '#value' => t('Filter'), 206 '#value' => t('Filter'),