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:
parent
7df37fdc92
commit
788a9c39b4
@ -192,6 +192,14 @@ function groups_install_finished(&$install_state) {
|
|||||||
->condition('name', drupal_get_profile())
|
->condition('name', drupal_get_profile())
|
||||||
->execute();
|
->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.
|
// Cache a fully-built schema.
|
||||||
drupal_get_schema(NULL, TRUE);
|
drupal_get_schema(NULL, TRUE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user