mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #2315 from PayBas/ticket/12411
[ticket/12411] Expand vars of event: core.search_modify_tpl_ary * PayBas/ticket/12411: [ticket/12411] Improved change documentation [ticket/12411] Missed on bool var [ticket/12411] Corrected event vars description [ticket/12411] Expand vars of event: core.search_modify_tpl_ary
This commit is contained in:
commit
40e28ac56b
1 changed files with 38 additions and 3 deletions
|
@ -1056,11 +1056,46 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
|||
* Modify the topic data before it is assigned to the template
|
||||
*
|
||||
* @event core.search_modify_tpl_ary
|
||||
* @var array row Array with topic data
|
||||
* @var array tpl_ary Template block array with topic data
|
||||
* @var array row Array with topic data
|
||||
* @var array tpl_ary Template block array with topic data
|
||||
* @var string show_results Display topics or posts
|
||||
* @var string topic_title Cleaned topic title
|
||||
* @var int replies The number of topic replies
|
||||
* @var string view_topic_url The URL to the topic
|
||||
* @var string folder_img The folder image of the topic
|
||||
* @var string folder_alt The alt attribute of the topic folder img
|
||||
* @var int topic_type The topic type
|
||||
* @var bool unread_topic Whether the topic has unread posts
|
||||
* @var bool topic_unapproved Whether the topic is unapproved
|
||||
* @var int posts_unapproved The number of unapproved posts
|
||||
* @var bool topic_deleted Whether the topic has been deleted
|
||||
* @var string u_mcp_queue The URL to the corresponding MCP queue page
|
||||
* @var array zebra The zebra data of the current user
|
||||
* @var array attachments All the attachments of the search results
|
||||
* @since 3.1.0-a1
|
||||
* @changed 3.1.0-b3 Added vars show_results, topic_title, replies,
|
||||
* view_topic_url, folder_img, folder_alt, topic_type, unread_topic,
|
||||
* topic_unapproved, posts_unapproved, topic_deleted, u_mcp_queue,
|
||||
* zebra, attachments
|
||||
*/
|
||||
$vars = array('row', 'tpl_ary');
|
||||
$vars = array(
|
||||
'row',
|
||||
'tpl_ary',
|
||||
'show_results',
|
||||
'topic_title',
|
||||
'replies',
|
||||
'view_topic_url',
|
||||
'folder_img',
|
||||
'folder_alt',
|
||||
'topic_type',
|
||||
'unread_topic',
|
||||
'topic_unapproved',
|
||||
'posts_unapproved',
|
||||
'topic_deleted',
|
||||
'u_mcp_queue',
|
||||
'zebra',
|
||||
'attachments',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.search_modify_tpl_ary', compact($vars)));
|
||||
|
||||
$template->assign_block_vars('searchresults', $tpl_ary);
|
||||
|
|
Loading…
Add table
Reference in a new issue