You are here

function devel_variable_form_submit in Devel 7

Same name and namespace in other branches
  1. 6 devel.module \devel_variable_form_submit()

Form submission handler for devel_variable_form().

File

./devel.pages.inc, line 284
Page callbacks for Devel.

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