book_admin_view
- Versions
- 4.6
book_admin_view($nid, $depth = 0)
Display an administrative view of the hierarchy of a book.
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 