Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2012 at 15:53 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andrewbelcher commentedHere's a bash at it. This just declares everything that is in search_api.api.php...
Comment #2
andrewbelcher commentedComment #3
rlmumfordThis looks good to me. You could use an array of strings and then a foreach to set them as the keys for the $hooks array. This would mean that the
'group' => 'search_api'line would only be written once. I think the way it's written is more readable though.This is a really helpful patch as the less code is in a modules .module file the less code needs to be bootstrapped on each page load improving performance. It also makes it easier to manage the code on a site.
Comment #4
drunken monkeyGreat idea, thanks! Thanks also for the patch, works perfectly.
Committed.
I just reformatted it a bit and added a note to the README.txt.