You are here

function gallery_assist_invoke_myhooktest in Gallery Assist 6

Invoke a hook_myhooktest() operation in all modules.

Parameters

&$node: A node object.

$op: A string containing the name of the nodeapi operation.

$a3, $a4: Arguments to pass on to the hook, after the $node and $op arguments.

Return value

The returned value of the invoked hooks.

File

./gallery_assist.module, line 3458
Drupal content type with gallery functionality.

Code

function gallery_assist_invoke_myhooktest(&$node, $op, $a3 = NULL, $a4 = NULL) {
  $return = array();
  foreach (module_implements('myhooktest') as $name) {
    $function = $name . '_myhooktest';
    $result = $function($node, $op, $a3, $a4);
    if (isset($result) && is_array($result)) {
      $return = array_merge($return, $result);
    }
    elseif (isset($result)) {
      $return[] = $result;
    }
  }
  return $return;
}