You are here

function features_set_signature in Features 7

Same name and namespace in other branches
  1. 6 features.export.inc \features_set_signature()
  2. 7.2 features.export.inc \features_set_signature()

Set the signature of a module/component pair in the codecache.

4 calls to features_set_signature()
features_admin_components_review in ./features.admin.inc
Submit handler for revert form.
features_get_component_states in ./features.export.inc
Retrieve an array of features/components and their current states.
features_update_6101 in ./features.install
Update 6101: Set codestate signature for all features.
_features_restore in ./features.module
Restore the specified modules to the default state.
1 string reference to 'features_set_signature'
features_update_6101 in ./features.install
Update 6101: Set codestate signature for all features.

File

./features.export.inc, line 568

Code

function features_set_signature($module, $component, $signature = NULL) {
  $var_codecache = variable_get('features_codecache', array());
  $signature = isset($signature) ? $signature : features_get_signature('default', $module, $component, TRUE);
  $var_codecache[$module][$component] = $signature;
  variable_set('features_codecache', $var_codecache);
}