From df28c71641fd53f73a982f48ba7898e2cf208eca Mon Sep 17 00:00:00 2001 From: wn_ Date: Wed, 21 May 2025 18:33:18 +0000 Subject: Improve naming when working with filter actions. Also updated some related typing and documentation. --- classes/Plugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'classes/Plugin.php') diff --git a/classes/Plugin.php b/classes/Plugin.php index 3165d62f4..3ab000e53 100644 --- a/classes/Plugin.php +++ b/classes/Plugin.php @@ -557,18 +557,18 @@ abstract class Plugin { return -1; } - /** Invoked when filter is triggered on an article, may be used to implement logging for filters - * NOTE: $article_filters should be renamed $filter_actions because that's what this is + /** + * Invoked when filtering is triggered on an article. May be used to implement logging for filters, etc. * @param int $feed_id * @param int $owner_uid * @param array $article * @param array $matched_filters * @param array $matched_rules - * @param array $article_filters + * @param array $article_filter_actions An array of filter actions from matched filters * @return void * @see PluginHost::HOOK_FILTER_TRIGGERED */ - function hook_filter_triggered($feed_id, $owner_uid, $article, $matched_filters, $matched_rules, $article_filters) { + function hook_filter_triggered($feed_id, $owner_uid, $article, $matched_filters, $matched_rules, $article_filter_actions) { user_error("Dummy method invoked.", E_USER_ERROR); } -- cgit v1.2.3-54-g00ecf