diff --git a/front_page.module b/front_page.module
index c0d7017..c40d3ef 100644
--- a/front_page.module
+++ b/front_page.module
@@ -216,9 +216,17 @@ function front_page_theme() {
   );
 }
 
+// Define the custom_url_rewrite_outbound() function if not already defined.
 if (!function_exists('custom_url_rewrite_outbound')) {
+  function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
+    front_page_url_outbound_alter($path, $options, $original_path);
+  }
+}
 
-  function custom_url_rewrite_outbound(&$path, &$options, &$original_path) {
+/**
+ * Implementation of hook_url_outbound_alter().
+ */
+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') {
@@ -228,6 +236,4 @@ if (!function_exists('custom_url_rewrite_outbound')) {
     if (($path == '<front>' || empty($path)) && !empty($newpath)) {
       $original_path = $path = $newpath;
     }
-  }
-
-}
\ No newline at end of file
+}
