mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13658] renamed events and added table_ary parameter
- added suffix '_query' to event names - added table_ary to before event PHPBB3-13658
This commit is contained in:
parent
71828ee8df
commit
2ad87c662f
1 changed files with 6 additions and 4 deletions
|
@ -675,14 +675,16 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
|
||||||
/**
|
/**
|
||||||
* Perform additional actions before topic(s) deletion
|
* Perform additional actions before topic(s) deletion
|
||||||
*
|
*
|
||||||
* @event core.delete_topics_before
|
* @event core.delete_topics_before_query
|
||||||
|
* @var array table_ary Array of tables from which all rows will be deleted that hold a topic_id occuring in topic_ids
|
||||||
* @var array topic_ids Array of topic ids to delete
|
* @var array topic_ids Array of topic ids to delete
|
||||||
* @since 3.1.4-RC1
|
* @since 3.1.4-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
|
'table_ary',
|
||||||
'topic_ids',
|
'topic_ids',
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.delete_topics_before', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.delete_topics_before_query', compact($vars)));
|
||||||
|
|
||||||
foreach ($table_ary as $table)
|
foreach ($table_ary as $table)
|
||||||
{
|
{
|
||||||
|
@ -695,14 +697,14 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
|
||||||
/**
|
/**
|
||||||
* Perform additional actions after topic(s) deletion
|
* Perform additional actions after topic(s) deletion
|
||||||
*
|
*
|
||||||
* @event core.delete_topics_after
|
* @event core.delete_topics_after_query
|
||||||
* @var array topic_ids Array of topic ids that were deleted
|
* @var array topic_ids Array of topic ids that were deleted
|
||||||
* @since 3.1.4-RC1
|
* @since 3.1.4-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
'topic_ids',
|
'topic_ids',
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.delete_topics_after', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.delete_topics_after_query', compact($vars)));
|
||||||
|
|
||||||
$moved_topic_ids = array();
|
$moved_topic_ids = array();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue