book_admin_edit

Versions
4.7 – 5
book_admin_edit($nid)
6
book_admin_edit($form_state, $node)
7
book_admin_edit($form, $form_state, stdClass $node)

Display an administrative view of the hierarchy of a book.

▾ 1 function calls book_admin_edit()

book_admin in modules/book.module
Menu callback; displays the book administration page.

Code

modules/book.module, line 894

<?php
function book_admin_edit($nid) {
  $node = node_load($nid);
  if ($node->nid) {
    drupal_set_title(check_plain($node->title));
    $form = array();

    $form['table'] = _book_admin_table(array($node));
    $form['save'] = array(
      '#type' => 'submit',
      '#value' => t('Save book pages'),
    );

    return drupal_get_form('book_admin_edit', $form);
  }
  else {
    drupal_not_found();
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.