Created
July 19, 2013 14:32
-
-
Save klakegg/6039510 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_url_outbound_alter(). | |
* | |
* Make sure to hide site_frontpage from urls. Useful when having pager on frontpage. | |
*/ | |
function MODULE_url_outbound_alter(&$path, &$options, $original_path) { | |
if ($path == variable_get('site_frontpage')) | |
$path = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment