You are here

function faq_general_settings_form_submit in Frequently Asked Questions 5

Same name and namespace in other branches
  1. 7 faq.admin.inc \faq_general_settings_form_submit()

File

./faq.module, line 268

Code

function faq_general_settings_form_submit($form_id, $form_values) {
  if ($form_values['op'] == t('Update')) {
    variable_set('faq_title', $form_values['faq_title']);
    variable_set('faq_description', $form_values['faq_description']);
    variable_set('faq_description_format', $form_values['format']);
    drupal_set_message(t('Configuration has been updated.'));
  }
}