function book_form_update

Same name in other branches
  1. 7.x modules/book/book.module \book_form_update()
  2. 9 core/modules/book/book.module \book_form_update()
  3. 8.9.x core/modules/book/book.module \book_form_update()
  4. 11.x core/modules/book/book.module \book_form_update()

Renders a new parent page select element when the book selection changes.

This function is called via Ajax when the selected book is changed on a node or book outline form.

Return value

array The rendered parent page select element.

1 string reference to 'book_form_update'
BookManager::addFormElements in core/modules/book/src/BookManager.php

File

core/modules/book/book.module, line 208

Code

function book_form_update($form, FormStateInterface $form_state) {
    return $form['book']['pid'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.