You are here

function _acquia_search_find_block_region in Acquia Search 6

Helper function for hook_install().

2 calls to _acquia_search_find_block_region()
AcquiaSearchTest::testDefaultBlocksEnable in tests/acquia_search.test
acquia_search_install in ./acquia_search.install
Implementation of hook_install().

File

./acquia_search.install, line 102

Code

function _acquia_search_find_block_region($block_regions = array()) {
  $regions_to_look_for = array(
    'left',
    /* garland & zen */
    'sidebar_first',
  );
  if ($matches = array_intersect($block_regions, $regions_to_look_for)) {
    return array_shift($matches);
  }
}