Disable commons_utility_links block on admin theme

The utility blocks was displayed on admin theme on new
deployments. This patch disable the block as part of
post-installation task.

Change-Id: Iabc2da4bdd05720426061e682f6811a4545e3ccb
This commit is contained in:
Marton Kiss 2015-04-03 16:06:03 +02:00
parent 7df37fdc92
commit 788a9c39b4
1 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,14 @@ function groups_install_finished(&$install_state) {
->condition('name', drupal_get_profile())
->execute();
// disable commons_utility_links on admin theme
db_update('block')
->fields(array('status' => 0))
->condition('delta', 'commons_utility_links')
->condition('module', 'commons_utility_links')
->condition('theme', 'adaptivetheme_admin')
->execute();
// Cache a fully-built schema.
drupal_get_schema(NULL, TRUE);