function features_admin_components_review in Features 6
Same name and namespace in other branches
- 7.2 features.admin.inc \features_admin_components_review()
- 7 features.admin.inc \features_admin_components_review()
Submit handler for revert form.
1 string reference to 'features_admin_components_review'
- features_admin_components in ./
features.admin.inc - Display the components of a feature.
File
- ./
features.admin.inc, line 563
Code
function features_admin_components_review(&$form, &$form_state) {
module_load_include('inc', 'features', 'features.export');
features_include();
$module = $form_state['values']['module'];
$revert = array();
foreach (array_filter($form_state['values']['revert']) as $component => $status) {
features_set_signature($module, $component);
drupal_set_message(t('All <strong>!component</strong> components for <strong>!module</strong> reviewed.', array(
'!component' => $component,
'!module' => $module,
)));
}
$form_state['redirect'] = 'admin/build/features/' . $module;
}