Programmaticaly Revert Features

Public

It's often useful to revert Features in update hooks. These are two separate methods for doing so.

</> CopyGet raw version
php
  1. // Revert individual components of one or more Features
  2. features_revert(array('module' => array('component')));
  3.  
  4. // Revert all components of a single Feature
  5. features_revert_module('my_module');