function hosting_server_services in Hosting 7.3
Same name and namespace in other branches
- 6.2 server/hosting_server.module \hosting_server_services()
- 7.4 server/hosting_server.module \hosting_server_services()
Return an associative array of services enabled on this system.
9 calls to hosting_server_services()
- hosting_hosting_server_context_options in server/
hosting_server.drush.inc - Pass options for the server verification to the backend.
- hosting_server_drush_context_import in server/
hosting_server.drush.inc - Implements hook_drush_context_import().
- hosting_server_form in server/
hosting_server.module - Implements hook_form().
- hosting_server_handler_field_services::label in server/
includes/ views/ handlers/ hosting_server_handler_field_services.inc - Build a table header compiled from available services.
- hosting_server_handler_field_services::render in server/
includes/ views/ handlers/ hosting_server_handler_field_services.inc - Build a list of services.
File
- server/
hosting_server.module, line 208
Code
function hosting_server_services() {
static $services;
if (!isset($services)) {
foreach (module_implements('hosting_service_type') as $module) {
// Load all service_type classes.
module_load_include('service.inc', $module);
}
// Invoke hook_hosting_service_type().
$services = module_invoke_all('hosting_service_type');
foreach (module_implements('hosting_service') as $module) {
// Invoke hook_hosting_service().
foreach (module_invoke($module, 'hosting_service') as $service => $service_type) {
// Load all service classes.
module_load_include('service.inc', $module);
$services[$service_type]['types'][$service] = 'hostingService_' . $service_type . '_' . $service;
}
}
}
return $services;
}