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

Form submission handler for book_admin_settings().

See also

book_admin_settings_validate()

File

core/modules/book/book.admin.inc, line 128
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'])
    ->set('book_navigation', $form_state['values']['book_navigation'])
    ->set('book_navigation_options', $form_state['values']['book_navigation_options'])
    ->set('book_links', $form_state['values']['book_links'])
    ->save();
  backdrop_set_message(t('The configuration options have been saved.'));
}