8.3.x book.module book_form_update($form, FormStateInterface $form_state)
8.0.x book.module book_form_update($form, FormStateInterface $form_state)
8.1.x book.module book_form_update($form, FormStateInterface $form_state)
8.2.x book.module book_form_update($form, FormStateInterface $form_state)
8.4.x book.module book_form_update($form, FormStateInterface $form_state)
6.x book.pages.inc book_form_update()
7.x book.module book_form_update($form, $form_state)

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

The rendered parent page select element.

1 string reference to 'book_form_update'
_book_add_form_elements in modules/book/book.module
Builds the common elements of the book form for the node and outline forms.

File

modules/book/book.module, line 609
Allows users to create and organize related content in an outline.

Code

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