Révision 30d5b9c5
Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans
drupal7/includes/form.inc | ||
---|---|---|
3385 | 3385 |
/** |
3386 | 3386 |
* Returns HTML to wrap child elements in a container. |
3387 | 3387 |
* |
3388 |
* Used for grouped form items. Can also be used as a #theme_wrapper for any
|
|
3388 |
* Used for grouped form items. Can also be used as a theme wrapper for any
|
|
3389 | 3389 |
* renderable element, to surround it with a <div> and add attributes such as |
3390 |
* classes or an HTML id. |
|
3390 |
* classes or an HTML ID. |
|
3391 |
* |
|
3392 |
* See the @link forms_api_reference.html Form API reference @endlink for more |
|
3393 |
* information on the #theme_wrappers render array property. |
|
3391 | 3394 |
* |
3392 | 3395 |
* @param $variables |
3393 | 3396 |
* An associative array containing: |
... | ... | |
3979 | 3982 |
// browser interpreting the path plus search string as an actual file. |
3980 | 3983 |
$current_clean_url = isset($GLOBALS['conf']['clean_url']) ? $GLOBALS['conf']['clean_url'] : NULL; |
3981 | 3984 |
$GLOBALS['conf']['clean_url'] = 0; |
3982 |
$element['#autocomplete_input']['#url_value'] = url($element['#autocomplete_path'], array('absolute' => TRUE)); |
|
3985 |
// Force the script path to 'index.php', in case the server is not |
|
3986 |
// configured to find it automatically. Normally it is the responsibility |
|
3987 |
// of the site to do this themselves using hook_url_outbound_alter() (see |
|
3988 |
// url()) but since this code is forcing non-clean URLs on sites that don't |
|
3989 |
// normally use them, it is done here instead. |
|
3990 |
$element['#autocomplete_input']['#url_value'] = url($element['#autocomplete_path'], array('absolute' => TRUE, 'script' => 'index.php')); |
|
3983 | 3991 |
$GLOBALS['conf']['clean_url'] = $current_clean_url; |
3984 | 3992 |
} |
3985 | 3993 |
return $element; |
Formats disponibles : Unified diff
Update to 7.42