You are here

function hosting_site_update_6206 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 site/hosting_site.install \hosting_site_update_6206()
  2. 7.3 site/hosting_site.install \hosting_site_update_6206()

Place call custom functions for block visibility.

File

site/hosting_site.install, line 410

Code

function hosting_site_update_6206() {
  $ret = array();

  // Temporarily enable Install Profile API module and load includes.
  module_enable(array(
    'install_profile_api',
  ));
  drupal_load('module', 'install_profile_api');
  install_include(array(
    'block',
  ));

  // Set block visibility.
  $theme = 'eldir';
  install_set_block('views', 'hosting_site_list-block_client', $theme, 'content_bottom', 0, 2, "<?php\nreturn hosting_site_client_admin_block_visibility();\n?>");
  install_set_block('views', 'hosting_site_list-block_client2', $theme, 'content_bottom', 0, 2, "<?php\nreturn hosting_site_client_list_block_visibility();\n?>");
  install_set_block('views', 'hosting_site_list-block_profile', $theme, 'content_bottom', 0, 2, "\n<?php\nreturn hosting_site_profile_block_visibility();\n?>");
  module_disable(array(
    'install_profile_api',
  ));
  return $ret;
}