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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

progpapa’s picture

Status: Active » Needs review
FileSize
442 bytes
frjo’s picture

Title: Wrong access callback for modal_forms/%ctools_js/login » Fix access callback for modal_forms login
Assigned: Unassigned » frjo
Status: Needs review » Fixed

Committed to 7-dev, thanks for the contribution!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.