function services_historical_info in Services Tools 7.3
Get historical services information.
Return value
array An associative array of historical services information.
See also
hook_services_historical_info()
2 calls to services_historical_info()
- conduit_historical_services_generate in services_historical/
services_historical.module - Generate historical services endpoints and resources.
- services_historical_default_services_endpoint_alter in services_historical/
services_historical.module - Implements hook_default_services_endpoint_alter().
File
- services_historical/
services_historical.module, line 55 - Provides primary Drupal hook implementations.
Code
function services_historical_info() {
$historical_info =& drupal_static(__FUNCTION__, array());
if (!$historical_info) {
foreach (module_implements('services_historical_info') as $module) {
foreach (module_invoke($module, 'services_historical_info') as $key => $info) {
$info += array(
'module' => $module,
'levels' => 2,
'suffix' => '',
);
if (!isset($info['format'])) {
$info['format'] = implode('.', array_fill(0, $info['levels'], '%d'));
}
}
$historical_info[$key] = $info;
}
}
drupal_alter('services_historical_info', $historical_info);
return $historical_info;
}