The Contextual Admin module has a "Create user" feature, but due to some settings options, it does not directly use the user_register_form form. Instead, it references user_register_form and makes some modifications to #access values. This is done via a form defined as context_admin_user_create_menu_render_form.

I've written a patch that integrates Role Delegation capabilities into Contextual Admin. It is available here for review: https://www.drupal.org/node/2700755 The problem is Role Delegation is unable to run this functionality because of the difference in $form_id values.

I will post a patch in a few minutes that simply adds context_admin_user_create_menu_render_form to the role_delegation_form_alter function. Doing this allows the patch I've written in Issue #2700755 to work correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ron_s created an issue. See original summary.

ron_s’s picture

Attached is a patch for review. Let me know if there are any questions, thanks.

ron_s’s picture

Status: Active » Needs review

Setting status to review.

JeroenT’s picture

Status: Needs review » Closed (outdated)

It’s been a while since the last comments in this issue. If this is still a problem feel free to reopen and provide patches.

ron_s’s picture

Status: Closed (outdated) » Needs review

And just like I mentioned on the other one... we're still using this, and the patch #2 is valid and works. Please commit.

ron_s’s picture

Patch #2 still applies cleanly to the latest -dev version.

ron_s’s picture

Patch #2 still applies cleanly to the latest 7.x-1.3 version.