1 book.install book_update_1001()

Add options for navigation and links.

Related topics

File

core/modules/book/book.install, line 117
Install, update and uninstall functions for the book module.

Code

function book_update_1001() {
  $config = config('book.settings');
  $config->set('book_navigation', 1);
  $config->set('book_navigation_options', array('tree', 'pager'));
  $config->set('book_links', array('book_add_child'));
  $config->save();
}