From ace93db499419d5e1819b0c20c6824dff776a7de Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 9 Aug 2005 08:01:55 +0000 Subject: [PATCH] * Adding a SkinTemplateContentActions hook to be able to modify the $content_actions array from an extension. --- docs/hooks.txt | 6 ++++++ includes/SkinTemplate.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/docs/hooks.txt b/docs/hooks.txt index 92fa0f44c4..ddc7e2f00a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -348,5 +348,11 @@ $article: article object watched 'CategoryPageView': before viewing a categorypage in CategoryPage::view $catpage: CategoryPage instance +'SkinTemplateContentActions': after building the $content_action array right + before returning it, see content_action.php in + the extension module for a demonstration of how + to use this hook. +$content_actions: The array of content actions + More hooks might not be available but undocumented. diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 3138224416..fcdd3daf02 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -713,6 +713,8 @@ class SkinTemplate extends Skin { } } + wfRunHooks( 'SkinTemplateContentActions', array(&$content_actions) ); + wfProfileOut( $fname ); return $content_actions; } -- 2.20.1