You are here

function commons_revert_features in Drupal Commons 7.3

Revert Features after the installation.

File

./commons.install, line 254
Install, update and uninstall functions for the Commons install profile.

Code

function commons_revert_features() {

  // Revert Features components to ensure that they are in their default states.
  $revert = array(
    'commons_follow' => array(
      'field_base',
    ),
    'commons_groups' => array(
      'field_instance',
      'field_base',
    ),
    'commons_trusted_contacts' => array(
      'field_instance',
      'field_base',
    ),
    'commons_wikis' => array(
      'og_features_permission',
    ),
    'commons_wysiwyg' => array(
      'user_permission',
      'ckeditor_profile',
    ),
    'commons_events' => array(
      'og_features_permission',
      'field_base',
    ),
    'commons_polls' => array(
      'og_features_permission',
    ),
    'commons_q_a' => array(
      'og_features_permission',
      'field_base',
    ),
    'commons_posts' => array(
      'og_features_permission',
    ),
    'commons_misc' => array(
      'variable',
    ),
  );
  features_revert($revert);
}