Language assignment modifies the user bulk administration form (admin/user/user) in a fairly heavyweight way, by overriding the menu callback for admin/user/user, and installing its own page callback function that calls a custom form builder, languageassign_user_admin_account(), instead of the core form builder user_admin_account(). That works, but it also has the unwanted side effect of causing all instances of hook_form_user_admin_account_alter() to have no effect. The same problem holds in D6 and D7.

For example, using Role Delegation in D7, with the patch to provide bulk add/remove role operations, role_delegation_form_user_admin_account_alter() is supposed to present the add/remove role operations in a nicer way, by grouping and renaming them. That fails when Language assignment is enabled. There may be other, more important hooks that get missed.

Modify languageassign_user_admin_account() to run all available hooks on user_admin_account().

Comments

Andrew Schulman’s picture

Status: Active » Closed (fixed)

Fixed in 6.x-1.x-dev and 7.x-1.0-beta2.