function recommender_fetch_data in Recommender API 7.6
3 calls to recommender_fetch_data()
- recommender_computing_data in ./
recommender.module - Implements hook_computing_data(). Expose recommender commands to computing.module.
- recommender_views_data in ./
recommender.views.inc - Implements hook_views_data().
- _recommender_process_periodic_callback in ./
recommender.module
File
- ./
recommender.module, line 367
Code
function recommender_fetch_data($name = NULL) {
$recommender_data = module_invoke_all('recommender_data');
drupal_alter('recommender_data', $recommender_data);
if ($name != NULL) {
if (isset($recommender_data[$name]) && is_array($recommender_data[$name])) {
$recommender_definition = $recommender_data[$name];
// perhaps do other default filling.
return $recommender_definition;
}
return FALSE;
}
else {
return $recommender_data;
}
}