Can I just ask, to check (as this is still technically beta), is there a reason from design that the user restriction module has a system weight of 10?

I needed to do a hook_user_restrictions_alter to set my own validation messages for the output of this module, but found I couldn't because of weight=10. I have now had to up my own modules weight to 11.

Just seems high!

Comments

adammalone’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

I'm not aware of any particular module that this conflicts with UR requiring UR to take a higher weight. Noting the commitdiff links to issues #200789: Change the error message shown when a username is not allowed from the restriction rules, #849998: Change the permissions used by the module and #268405: Help text cleanup unfortunately none have reference to the weight.

I'm going to suggest we leave things as they are for 7.x purely because it seems like only one person has been affected by this and others may have code which could be adversely affected if we change it. I've left weight as 0 in 8.x and we can alter that if we need to there.

Please reopen if you see otherwise.