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.
Needed this today. Also added features for hiding all user paths apart from user/password (so the only way to log in is via a one time login link) and removing the user login block (which only works with mongodb_block.module at the moment, need to add support for core blocks too.
Comment | File | Size | Author |
---|---|---|---|
#5 | maintenance_helper-d7.patch | 4.52 KB | jonhattan |
#1 | d7_port.patch | 3.6 KB | catch |
Comments
Comment #1
catchComment #2
gregglesLooks good. Don't we need to rebuild the menu cache in the _submit if we want the menu_alter to work?
Comment #3
catchWe would, if I'd added a UI for the variable in the settings form, which it appears I didn't.
Comment #4
claar CreditAttribution: claar commentedThis will need re-rolled for 6.x-2.x -- also, I suggest making this issue a straight D7 port. Toward that end, I've created #1096334: Add feature to (optionally?) hide login methods.
Comment #5
jonhattanHere's a patch for a straight port from 6.x-2.x. I've added three minimal changes not related to the port:
* Implement hook_uninstall().
* Use url() to build the link to the Maintenance Helper from the Maintenance Mode page.
* Move the check to show the message inside the user conditions check. That is, show the message iff the user is restricted to login.
Comment #6
claar CreditAttribution: claar commentedTested, committed, new D7 release created. Thanks, Jonhattan!
Comment #7
jonhattanThanks claar. Please make the release visible in the project page (Administer releases > Show snapshot release).
Comment #8
claar CreditAttribution: claar commentedDone; thanks.