Skip to content

Instantly share code, notes, and snippets.

@klakegg
Created July 19, 2013 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klakegg/6039510 to your computer and use it in GitHub Desktop.
Save klakegg/6039510 to your computer and use it in GitHub Desktop.
<?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