18 Aug
2006
18 Aug
'06
10:56 p.m.
On Thursday 17 August 2006 22:00, drupal@mclewin.com wrote:
Dave,
I will want a few exceptions to having displays filter based on location (admin interfaces and search engine friendly lists of everything in the db). If I use hook_db_rewrite_sql to filter as you suggest below, can I also selectivly disable the rewrite? (If RTFM is the most appropriate answer here I'll take it :) )
This won't be difficult. For anonymous users (including search engines) you wont know a location, so you can simply allow them to see all locations. For other users, you can create a permission 'access all locations', then use user_access() to test that permission before rewriting the query. RTFM and experiment. It should not be too difficult. -Dave