For the University of Colorado, we are currently extending the roles a site owner can invite users to for specific sites. We are doing this by adding a rid to the array of rids saved in user_external_invite_roles. This works fine unless the module that declared the role is disabled. Then you get an error when looping through the rids in http://cgit.drupalcode.org/user_external_invite/tree/user_external_invit...

If we continue to extend the core roles of our install profiles, managing the roles in a variable array gets difficult.

An improvement would be to allow modules to declare roles they want to be able to add to user_ext_invite in a hook similar to how we extend permission using https://www.drupal.org/project/secure_permissions

Comments

kreynen created an issue.