[development] How could everyone win and get Views in Drupal 8?

larry at garfieldtech.com larry at garfieldtech.com
Wed Aug 12 16:26:03 UTC 2009


Um.  hook_query_alter() went into core nearly a year ago as part of 
DBTNG.  It only applies to dynamic SELECT queries, which is a small 
minority of the queries Drupal runs.

Jamie Holly wrote:
> Yeah I agree we really need to keep Drupal lean. I wouldn't want to see 
> the entire Views package integrated as-is. I wouldn't mind some of the 
> functionality included though that would give an easy way to alter some 
> core queries. One that comes to mind is the comment query. Sometimes 
> there are needs for extra data from the user table to be pulled in, and 
> currently there really isn't an easy way to alter that query in 
> comments.module.
> 
> I've thought in the past about a hook_query_alter, but that could really 
> add some overhead - especially on sites with a large number of queries.
> 
> Jamie Holly
> http://www.intoxination.net http://www.hollyit.net
> 
> 
> 
> Earnie Boyd wrote:
>> Quoting Jamie Holly <hovercrafter at earthlink.net>:
>>
>> > I really like that whole idea. Then we could have handy hooks to  > 
>> easily modify those queries if someone wishes, like maybe an easy  > 
>> way to add index hinting.
>> >
>>
>> But we can have those hooks maintained in a contrib module as well.   
>> We just need to have a api.contrib.drupal.org or  
>> drupal.org/contrib/api.  I am with the crowd of keep Drupal core 
>> lean.    The less optional modules Drupal has to consider the better 
>> it would  be.
>>
>> -- 
>> Earnie
>> -- http://r-feed.com/           -- http://for-my-kids.com/
>> -- http://www.4offer.biz/       -- http://give-me-an-offer.com/
>>
>>
>>
>>   


More information about the development mailing list