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.

CommentFileSizeAuthor
#5 maintenance_helper-d7.patch4.52 KBjonhattan
#1 d7_port.patch3.6 KBcatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

FileSize
3.6 KB
greggles’s picture

Looks good. Don't we need to rebuild the menu cache in the _submit if we want the menu_alter to work?

catch’s picture

Status: Needs review » Needs work

We would, if I'd added a UI for the variable in the settings form, which it appears I didn't.

claar’s picture

This 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.

jonhattan’s picture

Title: Port to D7 » Port Maintenance Helper to D7
Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs work » Needs review
FileSize
4.52 KB

Here'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.

claar’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

Tested, committed, new D7 release created. Thanks, Jonhattan!

jonhattan’s picture

Thanks claar. Please make the release visible in the project page (Administer releases > Show snapshot release).

claar’s picture

Done; thanks.

Status: Fixed » Closed (fixed)

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