diff --git a/modules/custom_search/custom_search.module
index c9ff091..bee1430 100644
--- a/modules/custom_search/custom_search.module
+++ b/modules/custom_search/custom_search.module
@@ -738,3 +738,47 @@
 function custom_search_filter_array($value = FALSE) {
   return $value !== 0;
 }
+
+/**
+* Implements hook_menu_alter();
+*/
+function custom_search_menu_alter(&$items) {
+    if (variable_get('custom_search_paths', '') != '') {
+        $delta = variable_get('custom_search_paths', '');
+        $paths = explode('|', $delta);
+    
+        foreach($paths as $p){
+            $path = str_replace('/[key]', '', $p);
+            $items[$path] = array(
+                'title' => '',
+                'page callback' => 'search_view',
+                'page arguments' => array('node', 1),
+                'access callback' => '_search_menu_access',
+                'access arguments' => array('node'),
+                'type' => MENU_LOCAL_TASK,
+                'file' => drupal_get_path('module', 'search') . '/search.pages.inc',
+                'weight' => -10, //Don't know what is it for
+            );
+            $items["$path/%menu_tail"] = array(
+                'title' => '',
+                'load arguments' => array('%map', '%index'),
+                'page callback' => 'search_view',
+                'page arguments' => array('node', 1),
+                'access callback' => '_search_menu_access',
+                'access arguments' => array('node'),
+
+                // The default local task points to its parent, but this item points to
+                // where it should so it should not be changed.
+                'type' => MENU_LOCAL_TASK,
+                'file' => drupal_get_path('module', 'search') . '/search.pages.inc',
+                'weight' => 0,
+
+                // These tabs are not subtabs.
+                'tab_root' => $path.'/%',
+
+                // These tabs need to display at the same level.
+                'tab_parent' => $path,
+            );
+        }
+    }
+}
\ No newline at end of file
