Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I recreated an feature that has been overridden. The ThemeKey rules within the Feature were not overridden!
But the downloaded recreated feature lost the ThemeKey stuff:
Index: landing_page.info
===================================================================
--- landing_page.info (Revision 6694)
+++ landing_page.info (Arbeitskopie)
...
features[node][] = landing_page
-features[themekey_features_rule_chain][] = node:type = landing_page >>> landing_page_theme
features[user_permission][] = access socialshareprivacy
...
Index: landing_page.features.inc
===================================================================
--- landing_page.features.inc (Revision 6694)
+++ landing_page.features.inc (Arbeitskopie)
@@ -30,17 +30,3 @@
);
return $items;
}
-
-/**
- * Implements hook_themekey_features_rule_chain().
- */
-function landing_page_themekey_features_rule_chain() {
-if (!defined('THEMEKEY_PAGECACHE_UNSUPPORTED')) {
- define('THEMEKEY_PAGECACHE_UNSUPPORTED', 0);
- define('THEMEKEY_PAGECACHE_SUPPORTED', 1);
- define('THEMEKEY_PAGECACHE_TIMEBASED', 2);
- }
-$rules = array();
-
-return $rules;
-}
Comments
Comment #1
alexharries CreditAttribution: alexharries commentedI'm also seeing this problem - it's like the value is being exported fine, but isn't then being read back in on load.
Comment #2
mkalkbrennerI did some more testing bu t was not able to reproduce the bug. Maybe that issue has been fixed by features itself?