Thanks to the Clive i managed to make my own search module which adds another search path, so under mysite.com/searchpath I get search results from SEARCH_MODULE which I use.
Example "variables":
MYMODULE - your custom module which implement hooks below
SEARCH_MODULE - search module which you would like to use
searchpath - path for search results
// Custom search path alias
function MYMODULE_form_search_form_alter(&$form, &$form_state, $form_id) {
$form['#action'] = 'searchpath';
$form_state['action'] = 'searchpath';
$form['#submit'][] = '_MYMODULE_search_form_submit';
}
function MYMODULE_form_search_block_form_alter(&$form, &$form_state, $form_id) {
$form['#submit'][] = '_MYMODULE_search_form_submit';
}
function _MYMODULE_search_form_submit(&$form, &$form_state) {
$form_state['redirect'] = 'searchpath/'.$form_state['values']['search_block_form'];
}
// Add searchpath to available paths
function MYMODULE_menu_alter(&$items) {
$path = 'searchpath';
$items[$path] = array(
'title' => t('Search'),
'page callback' => 'search_view',
'page arguments' => array('SEARCH_MODULE', 1),
'access callback' => '_search_menu_access',
'access arguments' => array('SEARCH_MODULE'),
'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' => t('Search'),
'load arguments' => array('%map', '%index'),
'page callback' => 'search_view',
'page arguments' => array('SEARCH_MODULE', 1),
'access callback' => '_search_menu_access',
'access arguments' => array('SEARCH_MODULE'),
// 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' => 'searchpath/%',
// These tabs need to display at the same level.
'tab_parent' => 'searchpath',
);
}
Hope that this example helps.