summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel.module b/devel.module
index 4a12385..acf57a1 100644
--- a/devel.module
+++ b/devel.module
@@ -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) {