Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
This module allows developers to define special values for the #autocomplete_path form API property making possible to use non static URIs.
Example:
If you define this textfield:
$form['items'] = array(
'#title' => t('Items'),
'#type' => 'textfield',
'#autocomplete_path' => '/custom_search_callback/#language/#type/',
);
The #language and #type tokens will be replaced by the values of the elements with id="language" and id="type" defined in the DOM of the current page.
You will have to provide your own custom callback, this module only simplifies the proccess to make the uri replacements.
Project information
- Module categories: Developer Tools
- 9 sites report using this module
- Created by dagmar on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.