You are here

function features_update_7204 in Features 7.2

Set a marker variable, if the site could be affected by undesired reverts.

File

./features.install, line 342
Install, update and uninstall functions for the features module.

Code

function features_update_7204() {
  if (variable_get('features_update_7202_fixed_tmp')) {

    // The fixed version of features_update_7202() did run.
    // Delete the temporary marker variable.
    variable_del('features_update_7202_fixed_tmp');
  }
  else {

    // Either the old broken version of features_update_7202() ran, or features
    // was newly installed in a version where 7202 or 7203 was the latest
    // update.
    // Set a marker variable, indicating that some overridden features
    // components might have been accidentally reverted. See #3183346.
    variable_set('features_update_7202_possibly_broken', TRUE);
  }
}