By nithin123_drupal on
How can I find which 'search' core file(or function) loaded while calling this function
drupal_goto('search', array('query' => $values));
How can I find which 'search' core file(or function) loaded while calling this function
drupal_goto('search', array('query' => $values));
Comments
Well, drupal_goto() is just a
Well, drupal_goto() is just a redirect - it sends a 302 to the browser and initiates a new web request.
Therefore, your next place to look is the url handler that catches incoming requests for '/search'. You'll find the first step in that direction in the API docs search_menu() and the callback function you are looking for (unless other things are intercepting it) would be search_view()
.dan. is the New Zealand Drupal Developer working on Government Web Standards