In the same veign as the last version of this.
The one for admin/content/node actually interfered with this working (???)
This one solves whatever problem was cause, fixes a bug that was already there, and introduces disjunctive selection - in one way.
Because the module account_type relies on the radio button structure, this cannot work with that module enabled, until some change is made to that module.
Here is the code that would be altered in user.module
/**
* Implementation of hook_user_operations().
*/
function user_user_operations() {
global $form_values;
$operations = array(
'unblock' => array(
'label' => t('Unblock the selected users'),
'callback' => 'user_user_operations_unblock',
),
'block' => array(
'label' => t('Block the selected users'),
'callback' => 'user_user_operations_block',
),
'delete' => array(
'label' => t('Delete the selected users'),
),
);
if (user_access('administer access control')) {
$roles = user_roles(1);
unset($roles[DRUPAL_AUTHENTICATED_RID]); // Can't edit authenticated role.
$add_roles = array();
foreach ($roles as $key => $value) {
$add_roles['add_role-'. $key] = $value;
}
$remove_roles = array();
foreach ($roles as $key => $value) {
$remove_roles['remove_role-'. $key] = $value;