You are here

function front_page_url_outbound_alter in Front Page 6.2

Same name and namespace in other branches
  1. 7.2 front_page.module \front_page_url_outbound_alter()

Implementation of hook_url_outbound_alter().

1 call to front_page_url_outbound_alter()
front_page.module in ./front_page.module

File

./front_page.module, line 234

Code

function front_page_url_outbound_alter(&$path, &$options, $original_path) {

  // check if path is set to 'front_page' as this is our virtual home
  // page and doesn't work properly unless used from home page.
  if ($path == 'front_page') {
    $original_path = $path = '';
  }
  $newpath = variable_get('front_page_home_link_path', '');
  if (($path == '<front>' || empty($path)) && !empty($newpath)) {
    $original_path = $path = $newpath;
  }
}