Closed (fixed)
Project:
Devel
Version:
6.x-1.9
Component:
devel
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2010 at 16:49 UTC
Updated:
11 May 2010 at 21:50 UTC
Fixed by testing count($deletes):
function devel_variable_form_submit($form, &$form_state) {
$deletes = array_filter($form_state['values']['variables']);
array_walk($deletes, 'variable_del');
if (count($deletes)) {
drupal_set_message(format_plural(count($deletes), 'One variable deleted.', '@count variables deleted.'));
}
}
Comments
Comment #1
moshe weitzman commentedcommitted. thx.