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.
content_hander_filter_many_to_one does not override admin_summary().
admin_summary() calls get_value_options(), and if you have a lot of nodes or users that can potentially be referenced, it will load all of them to try to put them in the summary - doesn't matter if the widget for the exposed filter is autocomplete or anything like that.
Wasn't 100% sure the best approach to take for this, I ended up adding a new handler, then setting both nodereference and userreference to use that.
Comment | File | Size | Author |
---|---|---|---|
#1 | filter.patch | 3.52 KB | catch |
filter.patch | 2.8 KB | catch |
Comments
Comment #1
catchForgot to register the new handler.
Comment #2
dawehnerThe code seems to look pretty fine.