You are here

function feedback_settings_form_submit in Feedback 5

File

./feedback.module, line 223
Enables a site-wide feedback page.

Code

function feedback_settings_form_submit($form_id, $edit) {
  $page = $edit['page'];
  unset($edit['submit'], $edit['form_id'], $edit['page']);
  db_query("UPDATE {feedback_pages} SET data = '%s' WHERE name = '%s'", serialize($edit), $page->name);
  drupal_set_message(t('The configuration options have been saved.'));
  return array(
    'admin/settings/feedback',
  );
}