Manual:Hooks/SearchUpdate

From MediaWiki.org
Jump to: navigation, search
SearchUpdate
Available from version 1.10.0
Prior to search update completion

*Define function:
function fnMyHook( $id, $namespace, $title, $text ) { ... }

*Attach hook:
$wgHooks['SearchUpdate'][] = 'MyExtensionHooks::someExample';
Called from: SearchUpdate.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SearchUpdate extensions.


[edit] Details

  • $id : Page id
  • $namespace : Page namespace
  • $title : Page title
  • $text : Current text being indexed
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox