You are here

function hostmaster_task_finalize in Hostmaster (Aegir) 7.4

Same name and namespace in other branches
  1. 6.2 hostmaster.profile \hostmaster_task_finalize()
  2. 6 hostmaster.profile \hostmaster_task_finalize()
  3. 7.3 hostmaster.install \hostmaster_task_finalize()
1 call to hostmaster_task_finalize()
hostmaster_install in ./hostmaster.install
Implement hook_install().

File

./hostmaster.install, line 207

Code

function hostmaster_task_finalize() {
  variable_set('install_profile', 'hostmaster');

  // Enable Eldir, and set is as default theme
  theme_enable(array(
    'eldir',
  ));
  variable_set('theme_default', 'eldir');

  // Disable the default Bartik theme
  theme_disable(array(
    'bartik',
  ));
  drupal_set_message(st('Configuring default blocks'));
  hostmaster_place_blocks('eldir');

  // Save "menu_options" for our content types, so they don't offer to be put in menus.
  variable_set('menu_options_client', array());
  variable_set('menu_options_platform', array());
  variable_set('menu_options_server', array());
  variable_set('menu_options_site', array());

  // Rebuild node access permissions.
  node_access_rebuild();
}