Jump to content

Drupal: block the selected users not working


benjudy

Recommended Posts

In my Drupal 6 site, when I edit users, there is an option to "block the selected users" (or unblock). However, it doesn't do anything. I apply that option to a user, and it has no noticeable effect. Any idea why this might be?

 

I actually don't think I'll need that feature on my site. So, how might I simply remove those options from the drop down?

 

I'm thinking I need to probably modify a module or block or something like that, but I don't really have that down yet. I've read some things but it hasn't "clicked" and probably won't until I actually do it and see the results.

 

Any help is GREATLY appreciated!

  • 4 weeks later...

Dude,

 

Using form_alter hook, you can remove that option from the dropdown. Here is the sample code.....

 

function mymodule_form_alter(&$form, $form_state, $form_id){

if($form_id == 'user_admin_account'){

unset($form['options']['operation']['#options']['block']);

}

}

 

Hope this will help you...................

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.