#754130 by moshe weitzman. Variable editor displays message indicating a variable...
authormoshe weitzman
Wed, 28 Apr 2010 02:45:22 +0000 (02:45 +0000)
committermoshe weitzman
Wed, 28 Apr 2010 02:45:22 +0000 (02:45 +0000)
devel.module

index 4a12385..acf57a1 100644 (file)
@@ -1226,7 +1226,9 @@ function theme_devel_variable_form($form) {
 function devel_variable_form_submit($form, &$form_state) {
   $deletes = array_filter($form_state['values']['variables']);
   array_walk($deletes, 'variable_del');
-  drupal_set_message(format_plural(count($deletes), 'One variable deleted.', '@count variables deleted.'));
+  if (count($deletes)) {
+    drupal_set_message(format_plural(count($deletes), 'One variable deleted.', '@count variables deleted.'));
+  }
 }
 
 function devel_variable_edit($form_state, $name) {