1.20.x book.admin.inc book_admin_settings_submit($form, &$form_state)

Form submission handler for book_admin_settings().

See also

book_admin_settings_validate()

File

modules/book/book.admin.inc, line 96
Admin page callbacks for the Book module.

Code

function book_admin_settings_submit($form, &$form_state) {
  config('book.settings')
    ->set('book_allowed_types', $form_state['values']['book_allowed_types'])
    ->set('book_child_type', $form_state['values']['book_child_type'])
    ->save();
  backdrop_set_message(t('The configuration options have been saved.'));
}