Closed (fixed)
Project:
OpenSearch feed
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2009 at 05:32 UTC
Updated:
8 Jan 2010 at 05:40 UTC
The OpenSearch description XML will always have the path 'opensearch/[module]' and an actual search XML will have 'opensearch/[module]/[search-terms]' so we should just make these two separate callbacks, one leading to opensearch_view that just handles the search results, and the other to opensearch_description which only handles the description XML.
Comments
Comment #1
dave reidCommitted this to CVS along with removing the checks to see if the hook_search returns a name since core search.module seems to indicate there is a required return value for hook_search('name') and doesn't run any special checks.
http://drupal.org/cvs?commit=306396