Overrides for paths like "node" do not work as expected. Original content remains visible.

Comments

RedTop’s picture

Same issue here. Tried both node and <front> callbacks.

Nick Robillard’s picture

Alright, figured this out. I'll roll an update shortly.

The "empty_page" module needs to have a higher system weight than the module that declares the path you're trying to override. So the "node" callback worked for me when i manually edited the "system" table and set the empty_page module weight to 1. If you do this, be sure to clear site cache. I also re-saved the modules page, but this might not be necessary.

I'll add a fix to hook_install when i get a moment.

@RedTop - fyi, <front> isn't a valid path, but "node" is and will work if you do the weight update.

RedTop’s picture

Status: Fixed » Active

Thanks for looking into this! This module provides such elementary functionality it makes you wonder why Drupal core doesn't offer this by default.

I figured <front> wouldn't be valid, but when everything else failed... why not try and make sure before lodging this as an issue. :)

Nick Robillard’s picture

Status: Active » Fixed

Fix committed to dev - http://drupal.org/cvs?commit=466292

The fix is in hook_update. So if the module is already installed, you'll need to uninstall and reinstall in order for the fix to kick in. (fyi, you will lose all defined callbacks by doing so)

RedTop’s picture

Status: Active » Fixed

Cheers, works beautifully!

Nick Robillard’s picture

Status: Fixed » Closed (fixed)

Sweet.