You are here

function hosting_package_update_6202 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 package/hosting_package.install \hosting_package_update_6202()
  2. 7.3 package/hosting_package.install \hosting_package_update_6202()

Call custom functions for block visibility.

File

package/hosting_package.install, line 486
Install, update and uninstall for the package management module.

Code

function hosting_package_update_6202() {
  $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_package_list-block_1', $theme, 'content_bottom', 0, 2, "<?php\nreturn hosting_package_block_visibility();\n?>");
  module_disable(array(
    'install_profile_api',
  ));
  return $ret;
}