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.
search_admin_settings() calls _search_get_module_names() which does an ugly old-school job of getting module names by unserializing the info column from the DB. Somewhat late in D7 we added a helper function to avoid this mess: system_get_info(), which caches the data and presents a clean API call in stead hacking around with the {system} table.
We should fix the search module to use that function instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1106636-system-get-info-2.patch | 1.93 KB | pwolanin |
#1 | 1106636-system-get-info-1.patch | 1.9 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedI assume fixes are going in 8.x first? In any case, this is pretty trivial.
Comment #2
pwolanin CreditAttribution: pwolanin commentedActually, we are not assured the modules will come back from the hook in a sensible order, so this adds an asort() too.
Comment #3
jhodgdonThe patch looks quite reasonable to me. +1 for RTBC and commit to d8 and d7, assuming that the test bot agrees.
Comment #4
Dries CreditAttribution: Dries commentedPatch looks good. Committed this patch to my local 8.x tree. I'll push it out later tonight. Moving to 7.x in the mean time.
Comment #5
webchickCommitted to 7.x. Thanks!