You are here

function recommender_computing_data in Recommender API 7.6

Implements hook_computing_data(). Expose recommender commands to computing.module.

File

./recommender.module, line 111

Code

function recommender_computing_data() {
  $computing_data = array(
    'recommender' => recommender_fetch_data(),
  );
  foreach ($computing_data['recommender'] as $name => &$data) {
    if (!isset($data['form callback'])) {
      $data['form callback'] = 'recommender_command_form';
    }
    $data['command'] = $data['algorithm'];
  }
  return $computing_data;
}