Are you developing for Domain Access? Trying to add a new feature?

Use this issue to request new hooks!

Comments

agentrickard’s picture

About 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.

agentrickard’s picture

hook_domainlist() renamed as hook_domainnav().

agentrickard’s picture

hook_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.

agentrickard’s picture

Version: 5.x-1.0beta » 5.x-1.0beta3

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.

agentrickard’s picture

Added hook_domainload() to allow submodules to modify the $domain array.

agentrickard’s picture

Status: Active » Closed (fixed)

See API.php in the download or http://therickards.com/api