* Adding a SkinTemplateContentActions hook to be able to modify the
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 9 Aug 2005 08:01:55 +0000 (08:01 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 9 Aug 2005 08:01:55 +0000 (08:01 +0000)
  $content_actions array from an extension.

docs/hooks.txt
includes/SkinTemplate.php

index 92fa0f4..ddc7e2f 100644 (file)
@@ -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.
index 3138224..fcdd3da 100644 (file)
@@ -713,6 +713,8 @@ class SkinTemplate extends Skin {
                        }
                }
 
+               wfRunHooks( 'SkinTemplateContentActions', array(&$content_actions) );
+               
                wfProfileOut( $fname );
                return $content_actions;
        }