You are here

function ds_api_invoke in Display Suite 6.3

Generalised API function to invoke HOOK_dsapi in other modules.

Parameters

string $op: The operation

array $args: (optional) An array of variables to pass to the hook

Return value

The results of the given operation

File

./ds.module, line 443

Code

function ds_api_invoke($callback, $args = array()) {
  foreach (module_implements('dsapi') as $module) {
    return module_invoke($module, 'dsapi', $args);
  }
}