r10412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10411‎ | r10412 | r10413 >
Date:08:02, 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:
  • /branches/REL1_5/phase3/docs/hooks.txt (modified) (history)
  • /branches/REL1_5/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: branches/REL1_5/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: branches/REL1_5/phase3/includes/SkinTemplate.php
@@ -711,6 +711,8 @@
712712 }
713713 }
714714
 715+ wfRunHooks( 'SkinTemplateContentActions', array(&$content_actions) );
 716+
715717 wfProfileOut( $fname );
716718 return $content_actions;
717719 }

Status & tagging log