Active
Project:
Tagging
Version:
6.x-2.5
Component:
UX / GUI / Interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
5 Feb 2011 at 17:20 UTC
Updated:
3 Jun 2020 at 17:19 UTC
Jump to comment: Most recent
Comments
Comment #1
eugenmayer commenteddrupal_alter('tagging_suggestions', $suggestions);
You can use this alter hook which is called after the suggestions "compilation" to change the sorting.
( see https://github.com/EugenMayer/tagging/blob/master/tagging.module#232 )
Comment #2
Anonymous (not verified) commentedMaybe it's late and I don't understand anything in the module code but this do not work because uasort function is called after drupal_alter call.
Comment #3
eugenmayer commentedwell iam sorry, your right. So there is currently now way to change sorting, but that might be changeable. Maybe just create a feature reqeust for an API which is called after all suggestions are collected. If a hook is implemented..it is expected that this hook deals with the sorting and usort wont be called.