You are here

function devel_variable_form_submit in Devel 6

Same name and namespace in other branches
  1. 7 devel.pages.inc \devel_variable_form_submit()

File

./devel.module, line 1403

Code

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.'));
  }
}