Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
trackback_invoke_trackback(&$trackback, $op)
contributions/trackback/trackback.module, line 72
Invoke a hook_trackback() operation in all modules.
&$trackback A trackback object.
$op A string containing the name of the trackback operation.
The returned value of the invoked hooks.
<?php
function trackback_invoke_trackback(&$trackback, $op) {
$return = array();
foreach (module_implements('trackback') as $name) {
$function = $name .'_trackback';
$result = $function($trackback, $op);
if (isset($result)) {
if (is_array($result)) {
$return = array_merge($return, $result);
}
else {
$return[] = $result;
}
}
}
return $return;
}
?>