I'd like to be able to add location information using GeoRSS to OpenSearch results so it would be good if there was a hook in the OpenSearch module that allowed other modules to add information to the OpenSearch feeds. It could work similarly to the hook_nodeapi('rss item') hook in node.module.

Comments

geodaniel’s picture

Assigned: Unassigned » geodaniel
Status: Active » Needs review
StatusFileSize
new1.14 KB

Attached is a patch that adds an 'opensearch result' hook call to nodeapi. This could actually be implemented as 'rss item' instead of 'opensearch result' which would mean modules that already use that wouldn't have to implement anything new, but I'm not sure if it'd have any adverse or unintended effects.

geodaniel’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1001 bytes

Steven, I updated the patch as requested, to use 'rss item' and to add the braces into the if statement to match the coding standards. Looking forward to seeing this in action :)

Steven’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)