Drupal Programmaticaly Revert Features

Blog
    // Revert individual components of one or more Features
    features_revert(array('module' => array('component')));
     
    // Revert all components of a single Feature
    features_revert_module('my_module');

Useful in update hooks.

Add new comment