From: Ævar Arnfjörð Bjarmason Date: Tue, 9 Aug 2005 08:01:55 +0000 (+0000) Subject: * Adding a SkinTemplateContentActions hook to be able to modify the X-Git-Tag: 1.6.0~2046 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=ace93db499419d5e1819b0c20c6824dff776a7de;p=lhc%2Fweb%2Fwiklou.git * Adding a SkinTemplateContentActions hook to be able to modify the $content_actions array from an extension. --- 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; }