By BamaRob on
I'm using our Microsoft Active Directory server to authenticate users on our Drupal site. All user and password management will be handled in AD. Therefore, the 'Request new password' link at the bottom of the User Login block really doesn't need to be there. Is there any way to disable this, or modify the block so that it doesn't include the link?
Thanks,
Robert Aldridge
Comments
Easier than I thought...
I found a solution (I usually do immediately after posting to a public forum :-) )...
What I did:
I edited modules/user/user.module and commented out three of lines of code:
Is this the best way to do this? It works. So, I'll stick with it unless someone has a better way.
Thanks,
Robert Aldridge
If you'd rather not hack
If you'd rather not hack core you could:
- create your own custom block based on the one in user.module
- override the user/password menu entry so that it is not accessible (i.e. set 'access' to FALSE) or set callback to 'drupal_not_found'. You can do this in mymodule_menu(), e.g.:
This works because menu items in modules' !may_cache sections get added after all the cacheable ones (see Pro Drupal Development book p. 45).
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
A better way
Have a look at this: http://drupal.org/node/115159#comment-196079
Worked for me (Drupal 5.2).
/ Richie
Very cool!
The more I learn, the more I like about Drupal.
Thanks,
BR