Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
There is a need for a domaincron() hook that can be used to fire a single cron function for all active domains.
The hook has been scoped and should be in beta4.
It is possible, by the way, that we might want to use a custom domain cron hook instead of the default cron.php. The issue of how cron interacts with Domain Access needs investigation.
Comments
Comment #1
agentrickardAbout to commit another sub-module, which creates navigation block for moving from domain to domain.
Introduces function
hook_domainlist(), which allows for the insertion of additional data for theming.Comment #2
agentrickardhook_domainlist() renamed as hook_domainnav().
Comment #3
agentrickardhook_domainrecord() renamed hook_domaunupdate.
Two new (useful) hooks to let submodules overwrite default node access behaviors.
hook_domainrecords() -- alter the $grants array before saving a node.
hook_domaingrants() -- alter the $grants array before loading a node.
These hooks open the door for a domain_og() module to integrate the access control rules for the two systems.
Comment #4
agentrickardThere is a need for a domaincron() hook that can be used to fire a single cron function for all active domains.
The hook has been scoped and should be in beta4.
It is possible, by the way, that we might want to use a custom domain cron hook instead of the default cron.php. The issue of how cron interacts with Domain Access needs investigation.
Comment #5
agentrickardAdded hook_domainload() to allow submodules to modify the $domain array.
Comment #6
agentrickardSee API.php in the download or http://therickards.com/api