book_form_update

book_form_update($form, FormStateInterface $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.

File

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

Code

1
2
3
function book_form_update($form, FormStateInterface $form_state) {
  return $form['book']['pid'];
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.