Openstack Theme Utility links block

Add utility links block to openstack theme instead of commons_origins.

Change-Id: Ib587c32a4d48070fbfdd6c3de9bbd604123d1a34
This commit is contained in:
Marton Kiss 2013-10-24 23:24:12 +02:00
parent 2809cc1717
commit d5153ccd62
2 changed files with 32 additions and 0 deletions

View File

@ -49,6 +49,8 @@ projects[commons_utility_links][type] = "module"
projects[commons_utility_links][subdir] = "commons"
projects[commons_utility_links][download][url] = "http://git.drupal.org/project/commons_utility_links.git"
projects[commons_utility_links][download][branch] = "7.x-3.x"
; add utility links block to openstack theme instead of commons_origins
projects[commons_utility_links][patch][] = "patches/0001-utility-links-block-install-theme.patch"
projects[commons_bw][type] = "module"
projects[commons_bw][subdir] = "commons"

View File

@ -0,0 +1,30 @@
diff -Naur a/commons_utility_links.install b/commons_utility_links.install
--- a/commons_utility_links.install 2013-10-24 19:50:45.000000000 +0000
+++ b/commons_utility_links.install 2013-10-24 20:56:41.575728538 +0000
@@ -13,7 +13,7 @@
$utility_block = array(
'module' => 'commons_utility_links',
'delta' => 'commons_utility_links',
- 'theme' => 'commons_origins',
+ 'theme' => 'openstack',
'visibility' => 0,
'region' => 'header',
'status' => 1,
@@ -28,7 +28,7 @@
->fields(array('cache' => DRUPAL_NO_CACHE))
->condition('delta', 'commons_utility_links')
->condition('module', 'commons_utility_links')
- ->condition('theme', 'commons_origins')
+ ->condition('theme', 'openstack')
->execute();
}
@@ -50,7 +50,7 @@
))
->condition('delta', 'commons_utility_links')
->condition('module', 'commons_utility_links')
- ->condition('theme', 'commons_origins')
+ ->condition('theme', 'openstack')
->execute();
cache_clear_all('*', 'cache_block', TRUE);
}