- return BCM_PLUGINS[bcm_mode](keyword, text, bcm_mode)
\ No newline at end of file
+ return BCM_PLUGINS[bcm_mode](keyword, text, bcm_mode)
+
+
+def register_search_plugin(label, search_function):
+ """
+ Registers a group label and search_function
+
+ search_function(search_string) --> (text_display, obj_url)
+ """
+
+ if label in _SEARCH_FUNCTIONS:
+ msg = "search function for label (%s) already registered." % (label)
+ raise ValueError, msg
+
+ _SEARCH_FUNCTIONS[label] = search_function
+
\ No newline at end of file