You are here

function commerce_kickstart_update_7207 in Commerce Kickstart 7.2

Enable facetapi blocks + assign them in the sidebar_first region.

File

./commerce_kickstart.install, line 999
Installation code for Commerce Kickstart.

Code

function commerce_kickstart_update_7207() {
  $default_theme = variable_get('theme_default', 'omega_kickstart');
  _block_rehash($default_theme);

  // Put the facets blocks in the right place.
  db_update('block')
    ->fields(array(
    'region' => 'sidebar_first',
    'pages' => 'products',
    'visibility' => BLOCK_VISIBILITY_LISTED,
    'status' => (int) '1',
  ))
    ->condition('module', 'facetapi')
    ->condition('delta', '0', '<>')
    ->condition('theme', $default_theme)
    ->execute();
}