Skip to content
Snippets Groups Projects
Commit 20dbb2f2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #190867 by David_Rothstein: fixed function name.

parent 58ba3b6e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -2724,7 +2724,7 @@ function theme_textfield($variables) { ...@@ -2724,7 +2724,7 @@ function theme_textfield($variables) {
$extra = ''; $extra = '';
$output = ''; $output = '';
if ($element['#autocomplete_path'] && menu_valid_path(array('link_path' => $element['#autocomplete_path']))) { if ($element['#autocomplete_path'] && drupal_valid_path($element['#autocomplete_path'])) {
drupal_add_js('misc/autocomplete.js'); drupal_add_js('misc/autocomplete.js');
$class[] = 'form-autocomplete'; $class[] = 'form-autocomplete';
$extra = '<input class="autocomplete" type="hidden" id="' . $element['#id'] . '-autocomplete" value="' . check_url(url($element['#autocomplete_path'], array('absolute' => TRUE))) . '" disabled="disabled" />'; $extra = '<input class="autocomplete" type="hidden" id="' . $element['#id'] . '-autocomplete" value="' . check_url(url($element['#autocomplete_path'], array('absolute' => TRUE))) . '" disabled="disabled" />';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment