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 97
Administration 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.'));
}