atr_callback_execute

Versions
6.1
atr_callback_execute($callback)

Execute a review method callback.

Parameters

$callback An associative array containing callback information as defined in hook_atr_method_info().

... Additional arguments to pass on to the callback.

▾ 2 functions call atr_callback_execute()

atr_review_method_result in atr/includes/atr.result.inc
Display review results for a specific method.
atr_review_result in atr/includes/atr.result.inc
Display review results.

Code

atr/atr.module, line 278

<?php
function atr_callback_execute($callback) {
  require_once('./'. drupal_get_path('module', $callback['#module']) . '/' . $callback['#file']);
  $args = func_get_args();
  array_shift($args);

  return call_user_func_array($callback['#callback'], $args);
}
?>