fields(array( 'region' => 'branding', 'status' => (int) '1', )) ->condition('module', 'views') ->condition('delta', '3dc7fa29e5bf935c0dbc271fbe9e7bbc') ->condition('theme', $default_theme) ->execute(); // 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(); // Set the Price facet block weight. db_update('block') ->fields(array( 'title' => 'Price', 'weight' => '-1', )) ->condition('module', 'facetapi') ->condition('delta', 'JJxX1AGk0T8LaEseJt5QjNvJU0laclrM') ->condition('theme', $default_theme) ->execute(); } catch (Exception $e) { watchdog_exception('block', $e); throw $e; } }