You are here

function devel_variable_edit_submit in Devel 7

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

Form submission handler for devel_variable_edit().

File

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

Code

function devel_variable_edit_submit($form, &$form_state) {
  variable_set($form_state['values']['name'], $form_state['values']['new']);
  drupal_set_message(t('Saved new value for %name.', array(
    '%name' => $form_state['values']['name'],
  )));
  'devel/variable';
}