You are here

function computing_echo_handle_result in Drupal Computing 7.2

'result callback' for the Echo command.

1 string reference to 'computing_echo_handle_result'
computing_computing_data in ./computing.module
Implements hook_computing_data(). See README for details.

File

./computing.admin.inc, line 277

Code

function computing_echo_handle_result($output, $record) {
  $input = $record->input;
  if (isset($output['pong']) && isset($input['ping']) && $output['pong'] == $input['ping']) {
    watchdog('computing', 'Echo command executed correctly from agent.');
  }
  else {
    watchdog('computing', 'Echo command not executed correctly. See computing record: !id', array(
      '!id' => $record->id,
    ), WATCHDOG_WARNING);
  }
}