diff --git a/features.admin.inc b/features.admin.inc index bfab042..407b83c 100644 --- a/features.admin.inc +++ b/features.admin.inc @@ -607,11 +607,14 @@ function features_admin_components_revert(&$form, &$form_state) { module_load_include('inc', 'features', 'features.export'); features_include(); $module = $form_state['values']['module']; - $revert = array(); + $revert = array($module => array()); foreach (array_filter($form_state['values']['revert']) as $component => $status) { $revert[$module][] = $component; drupal_set_message(t('Reverted all @component components for @module.', array('@component' => $component, '@module' => $module))); } + if (empty($revert[$module])) { + drupal_set_message(t('Please select which components to revert.'), 'warning'); + } features_revert($revert); $form_state['redirect'] = 'admin/structure/features/' . $module; }