comparison modules/book/book.admin.inc @ 13:8b6c45761e01 6.6

Drupal 6.6
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:33 +0100
parents fff6d4c8c043
children
comparison
equal deleted inserted replaced
12:4ca9f57cc4d4 13:8b6c45761e01
1 <?php 1 <?php
2 // $Id: book.admin.inc,v 1.8.2.2 2008/07/08 10:19:46 goba Exp $ 2 // $Id: book.admin.inc,v 1.8.2.3 2008/10/22 19:26:01 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Admin page callbacks for the book module. 6 * Admin page callbacks for the book module.
7 */ 7 */
168 * Recursive helper to build the main table in the book administration page form. 168 * Recursive helper to build the main table in the book administration page form.
169 * 169 *
170 * @see book_admin_edit() 170 * @see book_admin_edit()
171 */ 171 */
172 function _book_admin_table_tree($tree, &$form) { 172 function _book_admin_table_tree($tree, &$form) {
173 foreach ($tree as $key => $data) { 173 foreach ($tree as $data) {
174 $form[$key] = array( 174 $form['book-admin-'. $data['link']['nid']] = array(
175 '#item' => $data['link'], 175 '#item' => $data['link'],
176 'nid' => array('#type' => 'value', '#value' => $data['link']['nid']), 176 'nid' => array('#type' => 'value', '#value' => $data['link']['nid']),
177 'depth' => array('#type' => 'value', '#value' => $data['link']['depth']), 177 'depth' => array('#type' => 'value', '#value' => $data['link']['depth']),
178 'href' => array('#type' => 'value', '#value' => $data['link']['href']), 178 'href' => array('#type' => 'value', '#value' => $data['link']['href']),
179 'title' => array( 179 'title' => array(