You are here

function om_tools_admin_submit in OM Tools 7

Same name and namespace in other branches
  1. 8.2 inc/om_tools.admin.inc \om_tools_admin_submit()
  2. 8 om_tools.module \om_tools_admin_submit()
  3. 6.2 inc/om_tools.admin.inc \om_tools_admin_submit()
  4. 6 om_tools.module \om_tools_admin_submit()
  5. 7.2 inc/om_tools.admin.inc \om_tools_admin_submit()

Submit

File

./om_tools.module, line 88
This is a collection of OM Tools.

Code

function om_tools_admin_submit($form, $form_state) {
  $form_values = $form_state['values'];
  foreach ($form_values as $key => $value) {
    variable_set('om_tools_' . $key, $value);
  }
  drupal_set_message(t('Your settings has been saved.'));
}