You are here

function devel_variable_edit_submit in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \devel_variable_edit_submit()
  2. 7 devel.pages.inc \devel_variable_edit_submit()

File

./devel.module, line 1040

Code

function devel_variable_edit_submit($form_id, $form_values) {
  variable_set($form_values['name'], $form_values['new']);
  drupal_set_message(t('Saved new value for %name', array(
    '%name' => $form_values['name'],
  )));
  return 'devel/variable';
}