Hi,

in the current version of drupal 7.x it's not possible to extend the taxonomy_autocomplete results with custom callbacks, due to the drupal json_output rendering.

How could this be implemented ?

best regards.

Comments

sjpagan created an issue. See original summary.

davidebru’s picture

Hi,
This patch solves the reported issue, applying the following changes to the taxonomy module:

- Add a delivery callback to the taxonomy/autocomplete menu item, useful to perform a drupal_json_output callback on returned results.

- The taxonomy_autocomplete callback returns the query results that will then be processed by drupal_json_output delivery callback.

Regards,

davidebru’s picture

Status: Active » Needs review

Status: Needs review » Needs work

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.

quietone’s picture

Issue tags: -taxonomy autocomplete