You are here

function book_admin_edit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/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.

2 string references to 'book_admin_edit'
book_admin in modules/book/book.module
Menu callback; displays the book administration page.
book_admin_orphan in modules/book/book.module
Menu callback; displays a listing of all orphaned book pages.

File

modules/book/book.module, line 875
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 $form;
  }
  else {
    drupal_not_found();
  }
}