Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've added the 'modal_forms/nojs/login' link to a menu, included the required class names with Menu Attributes, all is fine. However the login link shows up for logged in users too.
This is because the access callback in hook_menu is set to TRUE. I think it should be 'user_is_anonymous', just like for the password form.
Comment | File | Size | Author |
---|---|---|---|
#1 | modal_form-login_access_callback-2182017.txt | 442 bytes | progpapa |
Comments
Comment #1
progpapa CreditAttribution: progpapa commentedComment #2
frjo CreditAttribution: frjo commentedCommitted to 7-dev, thanks for the contribution!