Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I activate the module role_delegation, the module role_limits doesn't work.
It's because role_limits controls the number of users when "activate" is a parameter of the hook_user.
So, all is working if I replace the code :
/**
* Implementation of hook_user().
*/
function role_delegation_user($op, &$edit, &$account, $category = NULL) {
if ($op != 'insert' && $op != 'submit' ) {
return;
}
with:
/**
* Implementation of hook_user().
*/
function role_delegation_user($op, &$edit, &$account, $category = NULL) {
if ($op != 'insert' && $op != 'submit' && $op != 'validate') {
return;
}
Comments
Comment #1
David Lesieur CreditAttribution: David Lesieur commentedThis breaks Role Delegation because checks in user_profile_form_validate() prevent hook_user() implementations from adding the 'roles' key to $edit during validation if the user does not have the permission to 'administer permissions'.
Comment #2
benjy CreditAttribution: benjy at PreviousNext commentedDrupal 6 support has now been dropped.