glFusion Wiki

Site Tools


glfusion:development:api:search:plugin_searchtypes_plugin_name

plugin_searchtypes_{plugin_name}

(glFusion v1.1.0)

plugin_searchtypes_{plugin_name} – Returns the types of search the plugin supports

Description

array plugin_searchtypes_{plugin_name}()

Returns the types of search the plugin supports

Parameters

Return Value

The return array is of the format array['searchtype'] = 'Search Description', where searchtype is returned to your plugin search routine and Description is displayed in the Search Page Drop Down box.

You can have multiple search types and descriptions.

Example

function plugin_searchtypes_{plugin_name}()
{
    global $LANG_PL00;
    $tmp['searchtype']= $LANG_PL00['searchtype'];
    return $tmp;
}

Notes

See Also

glfusion/development/api/search/plugin_searchtypes_plugin_name.txt · Last modified: 2017/04/12 21:15 (external edit)

Page Tools