41a46,73 > > /** > * Invoke a hook_printapi() operation in all modules. > * > * @param &$node > * A node object. > * @param $op > * A string containing the name of the nodeapi operation. > * @param $a3, $a4 > * Arguments to pass on to the hook, after the $node and $op arguments. > * @return > * The returned value of the invoked hooks. > */ > function print_invoke_printapi(&$node, $op, $a3 = NULL, $a4 = NULL) { > $return = array(); > foreach (module_implements('printapi') as $name) { > $function = $name .'_printapi'; > $result = $function($node, $op, $a3, $a4); > if (isset($result) && is_array($result)) { > $return = array_merge($return, $result); > } > else if (isset($result)) { > $return[] = $result; > } > } > return $return; > } > 619a652,653 > > print_invoke_printapi($node, 'alter');