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, $node)

Build the form to administrate the hierarchy of a single book.

See also

book_admin_edit_submit()

Related topics

Code

modules/book/book.admin.inc, line 78

<?php
function book_admin_edit($form, $form_state, $node) {
  drupal_set_title($node->title[FIELD_LANGUAGE_NONE][0]['value']);
  $form['#node'] = $node;
  _book_admin_table($node, $form);
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save book pages'),
  );

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