1 book.admin.inc book_admin_edit($form, $form_state, Node $node)

Form constructor for administering a single book's hierarchy.

Parameters

Node $node: The node of the top-level page in the book.

See also

book_menu()

book_admin_edit_validate()

book_admin_edit_submit()

Related topics

File

core/modules/book/book.admin.inc, line 150
Admin page callbacks for the Book module.

Code

function book_admin_edit($form, $form_state, Node $node) {
  backdrop_set_title($node->title);
  $form['#node'] = $node;
  _book_admin_table($node, $form);
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save book pages'),
  );

  return $form;
}