Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
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.
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)
Comments
Comment #1
RedTop commentedSame issue here. Tried both node and
<front>callbacks.Comment #2
Nick Robillard commentedAlright, 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.
Comment #3
RedTop commentedThanks 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. :)Comment #4
Nick Robillard commentedFix 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)
Comment #5
RedTop commentedCheers, works beautifully!
Comment #6
Nick Robillard commentedSweet.