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.
I talked to @nick_vh about this, we should use search_get_default_module_info()
to be able to automatically integrate with Solr or whatever other custom search engine people have installed.
Comments
Comment #1
Wim LeersNow in includes/pages.inc/aloha_repository_link().
Comment #2
Nick_vhhttp://drupalcode.org/project/aloha.git/blob?f=includes/pages.inc#l17
is this the code you were talking about?
Comment #3
Wim LeersYes :)
Comment #4
Wim LeersComment #5
Wim Leers..
Comment #6
Wim LeersSo apparently
search_get_default_module_info()
is utterly useless. It's only intended to let its callers know at which path it provides search results, it does not provide a function to call to retrieve search results.AFAICT,
hook_search_execute()
is the closest thing that we have to an API. Hence I've updated the code to at least use that; now user profiles will also be found.http://drupalcode.org/project/aloha.git/commit/227bc7e
Comment #6.0
Wim LeersUpdated issue summary.