Problem/Motivation
Integrate with anonymous_login module automatically.
Proposed resolution
Implement the hook that is to be added here #2816507: Add an API, so modules can integrate seamlessly with this one..
POC code:
/**
* Implements hook_anonymous_login_paths_alter().
*
* Used to make a no-config integration with the 'anonymous_login' module.
*
* @param array $paths
* List of exclude/include directives for the anonymous_login module.
*/
function legal_anonymous_login_paths_alter(&$paths) {
$paths['exclude'][] = 'legal';
$paths['exclude'][] = 'legal_accept/*';
}
Remaining tasks
Patch in anonymous log-in.
Discussion + patch here.
User interface changes
None.
API changes
New hook implementation. (API addition).
Data model changes
None.
Comments
Comment #2
ndobromirov commentedSetting state to postponed on the other issue.
Comment #3
ndobromirov commentedThis can be active now. The API in anonymous_login is present in the latest development version.
Comment #5
robert castelo commentedAdded to 7 dev branch.