You are here

function hosting_update_6001 in Hostmaster (Aegir) 6

Implements hook_update_N().

Change the default configured blocks to match eldir.

File

modules/hosting/hosting.install, line 93
Install, update and uninstall for the hosting module.

Code

function hosting_update_6001() {
  $ret = array();
  module_enable(array(
    'install_profile_api',
  ));
  drupal_load('module', 'install_profile_api');
  install_include(array(
    'block',
  ));
  $theme = 'eldir';
  install_disable_block('hosting', 'hosting_queues_summary', $theme);
  install_set_block('user', 0, $theme, 'right', 0);
  install_set_block('user', 1, $theme, 'right', 0);
  install_set_block('hosting', 'hosting_queues', $theme, 'right', 5);
  install_set_block('hosting', 'hosting_summary', $theme, 'right', 10);
  return $ret;
}