You are here

function book_admin_edit in Drupal 7

Same name and namespace in other branches
  1. 4 modules/book.module \book_admin_edit()
  2. 5 modules/book/book.module \book_admin_edit()
  3. 6 modules/book/book.admin.inc \book_admin_edit()

Form constructor for administering a single book's hierarchy.

Parameters

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

See also

book_admin_edit_submit()

book_admin_edit_validate()

Related topics

1 string reference to 'book_admin_edit'
book_menu in modules/book/book.module
Implements hook_menu().

File

modules/book/book.admin.inc, line 83
Administration page callbacks for the Book module.

Code

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