hostmaster.profile 536 Bytes
Newer Older
ergonlogic's avatar
ergonlogic committed
1 2 3
<?php

// We need this (empty) file for Drupal to recognize our profile
4 5 6 7 8 9 10 11 12 13 14 15 16

/**
 * Implements hook_update_projects_alter().
 */
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);
}