Difference between revisions of "Search Functions"
From GeeklogWiki
Line 22: | Line 22: | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | |||
+ | [[Category:Plugin Development]] |
Revision as of 14:40, 2 July 2004
If you want your plugin to be searchable, implement these functions.</p>
Function | Description of Function |
---|---|
plugin_getsearchtypes_<plugin name> | You will probably want to add a
new type in the Type drop down on search.php. This function printsthe option tags needed. make sure that the value tag is <plugin name> |
plugin_dopluginsearch_<plugin name> | Takes the search criteria and lets
you build search results for your plugin. This returns a stringarray of table rows, one row for each record returned by your search. |