function _nodewords_invoke in Nodewords: D6 Meta Tags 5
Invoke a hook_nodewords() operation in all modules.
Parameters
&$tags: A tags object.
$op: A string containing the name of the nodewords operation ('prepare' => prepares the tags before output).
$a3, $a4: Additional parameters to pass through this hook (for 'prepare': $a3 is the type of page ('node', 'taxonomy', ...) and $a4 is an array of ids of the page of this type).
Return value
The returned value of the invoked hooks.
2 calls to _nodewords_invoke()
- _nodewords_get_possible_tags in ./
nodewords.module - Return a list of possible output tags
- _nodewords_prepare in ./
nodewords.module - Prepare the tags so they are ready for output. This includes:
File
- ./
nodewords.module, line 1032 - Assign META tags to nodes, vocabularies, terms and pages.
Code
function _nodewords_invoke(&$tags, $op, $a3, $a4) {
$return = array();
foreach (module_implements('nodewords') as $name) {
$function = $name . '_nodewords';
$result = $function($tags, $op, $a3, $a4);
if (isset($result) && is_array($result)) {
$return = array_merge($return, $result);
}
else {
if (isset($result)) {
$return[] = $result;
}
}
}
return $return;
}