benjudy Posted July 5, 2010 Share Posted July 5, 2010 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! Quote Link to comment https://forums.phpfreaks.com/topic/206786-drupal-block-the-selected-users-not-working/ Share on other sites More sharing options...
vichu.1985 Posted July 29, 2010 Share Posted July 29, 2010 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................... Quote Link to comment https://forums.phpfreaks.com/topic/206786-drupal-block-the-selected-users-not-working/#findComment-1092555 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.