Downloads
Release notes
Summary
This fix adds a number of improvements to the way values are handled, locked and returned from the registry, as well as adding default information for the request, current user, and loaded node on node view pages.
Main changes
Callback entries
Entries can now be set using a callback instead of a fixed value. This ensures that the current value of the item is always loaded. The API function registry_set_callback() can be used to do this.
Set by reference removed
As a result, setting by reference has been removed completely.
Context
Registry entries can be set as a 'context', which adds extra information to the registry. Registry supports two default contexts:
- Primary: For directly visible objects, such as the node on a node view page
- Secondary: For related objects
Other contexts are also possible.
The API functions registry_set_context() and registry_set_context_callback() can be used to set these values.