Jump to content

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...................

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.