Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2008 at 14:01 UTC
Updated:
4 Mar 2010 at 14:27 UTC
The current implementation of search_menu places the implementing module name in the path. Examples are search/node and search/user. This has several implications. First, there is no control over this path, ie no way to say that content search should be search/content (let's ignore hook_menu_alter here), and second, there is no way for 1 module to define multiple search paths and handle them.
My proposed solution is to let hook_search return its path(s) in a new $op, called 'paths'.
Comments
Comment #1
robertdouglass commentedRelated issue that suggests the path and the searches available should be returned as structured data:
http://drupal.org/node/239133
Comment #2
mdupontWhat's the actual status on the issue?
Comment #3
jhodgdonLet's just have one issue, and I think the other one is more comprehensive.
Comment #4
jhodgdonOn second thought, I guess these are two separate issues. Anyway, neither made the feature request list for Drupal 7...
Comment #5
jhodgdonActually, this was fixed in Drupal 7: hook_search_info() does allow you to define your path.
That other issue remains.