r10411 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10410‎ | r10411 | r10412 >
Date:08:01, 9 August 2005
Author:avar
Status:old
Tags:
Comment:
* Adding a SkinTemplateContentActions hook to be able to modify the
$content_actions array from an extension.
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -348,5 +348,11 @@
349349 'CategoryPageView': before viewing a categorypage in CategoryPage::view
350350 $catpage: CategoryPage instance
351351
 352+'SkinTemplateContentActions': after building the $content_action array right
 353+ before returning it, see content_action.php in
 354+ the extension module for a demonstration of how
 355+ to use this hook.
 356+$content_actions: The array of content actions
352357
 358+
353359 More hooks might not be available but undocumented.
Index: trunk/phase3/includes/SkinTemplate.php
@@ -713,6 +713,8 @@
714714 }
715715 }
716716
 717+ wfRunHooks( 'SkinTemplateContentActions', array(&$content_actions) );
 718+
717719 wfProfileOut( $fname );
718720 return $content_actions;
719721 }

Status & tagging log