You are here

function finder_invoke_finderapi in Finder 6

Same name and namespace in other branches
  1. 7 finder.module \finder_invoke_finderapi()

Invoke hook_finderapi().

Parameters

&$object: The finder or finder flement.

$op: The operation, indicates where/when this is being invoked.

$a3, $a4: Arguments to pass to the hook implementation.

Return value

The returned value of the invoked hooks.

18 calls to finder_invoke_finderapi()
finder_admin_delete in includes/finder.admin.inc
Admin finder delete page.
finder_admin_edit in includes/finder.admin.inc
Admin finder edit page.
finder_admin_element_delete in includes/finder.admin.inc
Admin finder delete page
finder_admin_element_edit in includes/finder.admin.inc
Admin finder element add/edit page. Must have a Finder object at this point.
finder_admin_export in includes/finder.admin.inc
Admin finder export page.

... See full list

File

./finder.module, line 243
The finder module.

Code

function finder_invoke_finderapi(&$object, $op, $a3 = NULL, $a4 = NULL) {
  $return = array();
  foreach (module_implements('finderapi') as $name) {
    $function = $name . '_finderapi';
    $result = $function($object, $op, $a3, $a4);
    if (isset($result) && is_array($result)) {
      $return = array_merge($return, $result);
    }
    elseif (isset($result)) {
      $return[] = $result;
    }
  }
  return $return;
}