Manual:Hooks/APIQueryAfterExecute

Details

 * $module: Module object

Extending
To extend from one particular API module as opposed to all of them, run an  check against the particular class in the   directory. So that, to extend the parse module you would do a check against the class, returning true even if it isn't the module you intend to extend.

Sample code:

function apiExtensionFunction( &$module ) { if(!($module instanceof ApiParse)) return true; ... extension code here ... }

Without adding this, all modules of the API will be affected by the extension.

To add additional output to the feed, the result must be pulled from the module. Original output may be modified using the same method.

Sample code:

$result = $module->getResult; $data = $result->getData;

$status = $result->addValue(  array('foo', 'bar'),   'etc',   $addition_value );

In effect, what the above sample will do is append a new value onto the data structure foo->bar so that at foo->bar->etc the value will be whatever is contained within. Where in the hierarchy exactly things may go is up to the extension developer however each API feed does have a somewhat unique data hierarchy which it should placed into.