Last active
December 14, 2015 23:09
-
-
Save sagotsky/5163621 to your computer and use it in GitHub Desktop.
Notes for how to revert a feature only if it isn't overriden.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require_once(drupal_get_path('module', 'features')) . '/features.export.inc'; | |
$features_components = features_get_component_states(array('vsite')); | |
if ($features_components['vsite']['field'] == FEATURES_OVERRIDDEN) { | |
features_revert(array('vsite' => array('field'))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment