You are here

function hosting_update_6001 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 hosting.install \hosting_update_6001()
  2. 7.3 hosting.install \hosting_update_6001()

Implements hook_update_N().

Change the default configured blocks to match eldir.

File

./hosting.install, line 119
Define database schemas and update functions 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;
}