[PHP] core.search_modify_param_before

Request hook events and what data needs to be sent for the new hook system.
Post Reply
User avatar
Community Team Leader
Community Team Leader
Posts: 36
Joined: Mon Sep 01, 2014 10:54 pm

[PHP] core.search_modify_param_before

Post by Kailey »

An extension I'm creating needs to modify the ex_fid_ary variable before it is set in the SQL query. The core.search_get_posts_data and core.search_get_topic_data do not allow me to do this (see this topic -> https://www.phpbb.com/community/viewtop ... &t=2279731). I'm proposing an event before pre-made searches are created (currently line 313 in search.php). I've included an event below - please add more parameters as see fit.

Code: Select all

* Event to modify the SQL parameters before being assigned to searches.
* @event core.search_modify_param_before
* @var	array	ex_fid_ary	Array of excluded forum ids
* @since 3.1.3
$vars = array(
extract($phpbb_dispatcher->trigger_event('core.search_modify_param_before', compact($vars)));
Ticket: https://tracker.phpbb.com/browse/PHPBB3-13409

Post Reply