function hostmaster_update_projects_alter in Hostmaster (Aegir) 7.3
Same name and namespace in other branches
- 7.4 hostmaster.profile \hostmaster_update_projects_alter()
Implements hook_update_projects_alter().
File
- ./
hostmaster.profile, line 8
Code
function hostmaster_update_projects_alter(&$projects) {
// Enable update status for the Hostmaster profile.
$modules = system_rebuild_module_data();
// The module object is shared in the request, so we need to clone it here.
$hostmaster = clone $modules['hostmaster'];
$hostmaster->info['hidden'] = FALSE;
_update_process_info_list($projects, array(
'hostmaster' => $hostmaster,
), 'module', TRUE);
}