You are here

function book_admin_edit in Drupal 4

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

Display an administrative view of the hierarchy of a book.

1 call to book_admin_edit()
book_admin in modules/book.module
Menu callback; displays the book administration page.
1 string reference to 'book_admin_edit'
book_admin_orphan in modules/book.module
Menu callback; displays a listing of all orphaned book pages.

File

modules/book.module, line 894
Allows users to collaboratively author a book.

Code

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();
  }
}