book_admin_view

Versions
4.6
book_admin_view($nid, $depth = 0)

Display an administrative view of the hierarchy of a book.

▾ 1 function calls book_admin_view()

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

Code

modules/book.module, line 692

<?php
function book_admin_view($nid, $depth = 0) {
  if ($nid) {
    $node = node_load(array('nid' => $nid));

    $output .= '<h3>'. check_plain($node->title) .'</h3>';

    $header = array(t('Title'), t('Weight'), array('data' => t('Operations'), 'colspan' => '3'));
    $rows[] = book_admin_view_line($node);
    $rows = array_merge($rows, book_admin_view_book($nid));

    $output .= theme('table', $header, $rows);
    $output .= form_submit(t('Save book pages'));

    return form($output);
  }
}
?>
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.