ujCategories_db_search_items_listener
The event listener is registered in the ujCategories_init function:
jrCore_register_event_listener('jrCore', 'db_search_items', 'ujCategories_db_search_items_listener');
It adds a link to the genre during every audio search, the links are to that category which must be entered as a config setting.
function ujCategories_db_search_items_listener($_data, $_user, $_conf, $_args, $event)
{
if ($_args['module'] == 'jrAudio' && strlen(trim($_conf['ujCategories_link_genres'],', ')) > 1) {
$xurl = trim($_conf['ujCategories_link_genres'],', ');
foreach ($_data['_items'] as $k => $item) {
$_data['_items'][$k]['audio_genre'] = "<a href='{$_conf['jrCore_base_url']}/{$xurl}/{$item['audio_genre_url']}'>{$item['audio_genre']}</a>";
}
}
return $_data;
}