1 book.install | book_update_1003() |
Add option for dis-allowing books for all content types.
Related topics
File
- core/
modules/ book/ book.install, line 144 - Install, update and uninstall functions for the book module.
Code
function book_update_1003() {
$config = config('book.settings');
if ($config->get('book_admin_allowed_all') === NULL) {
$config->set('book_admin_allowed_all', 1);
$config->save();
}
}