Give the gift of Drupal. All merchandise is 50% off through 2016.
I'm trying to develop a domain beans module and I've based it on the Domain Block module. So I have it storing the bean domain info in a new table and all working in that respect and now I want to be able to not show the bean if its not set for a specific domain.
For the domain blocks it uses hook_block_list_alter and decides if it should unload a block based on is domain settings and the current domain. I can't figure how to do this for beans however and was wondering if you'd have any ideas.
indytechcook was good enough to reply to a personal message but suggested I post here as others may have some ideas.
"I would hook_query_alter (https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...) to alter the bean queries. You would need to submit a patch to the bean module to make sure all of it's queries have a tag on them. Anyone using the bean_load or bean_load_multiple (like they should be) will be tagged with bean_load_multiple per the Entity API.