You are here

function _formassembly_save_vars in FormAssembly 7

Save values needed later - those that begin with 'formassembly'.

Parameters

array $vars: The contents of $form_state['values'].

1 call to _formassembly_save_vars()
formassembly_settings_form_submit in ./formassembly.admin.inc
Submit handler for the FormAssembly settings form.

File

./formassembly.admin.inc, line 163
Contains FormAssembly admin settings.

Code

function _formassembly_save_vars($vars) {
  foreach ($vars as $key => $value) {

    // Only set variables for keys that start with 'formassembly'.
    if (strpos($key, 'formassembly') === 0) {
      variable_set($key, $value);
    }
  }
}