| 1 |
<?php |
<?php |
| 2 |
// $Id: booktree.module,v 1.12 2009/01/26 21:37:53 uccio Exp $ |
// $Id: booktree.module,v 1.12.2.1 2009/06/11 21:57:09 uccio Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 30 |
); |
); |
| 31 |
|
|
| 32 |
$items['admin/settings/booktree'] = array( |
$items['admin/settings/booktree'] = array( |
| 33 |
'title' => t('Settings of BookTree'), |
'title' => t('BookTree'), |
| 34 |
'description' => t('Manage the tree-view of book.'), |
'description' => t('Manage the tree-view of book.'), |
| 35 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 36 |
'page arguments' => array('booktree_configure'), |
'page arguments' => array('booktree_configure'), |
| 110 |
FROM {book} as b |
FROM {book} as b |
| 111 |
inner join {menu_links} as m ON b.mlid = m.mlid |
inner join {menu_links} as m ON b.mlid = m.mlid |
| 112 |
inner join {node} as n ON n.nid = b.nid |
inner join {node} as n ON n.nid = b.nid |
| 113 |
WHERE m.plid = $mlid |
WHERE m.plid = $mlid AND status = 1 |
| 114 |
ORDER by m.weight, n.title |
ORDER by m.weight, n.title |
| 115 |
"; |
"; |
| 116 |
|
//ATTENTION --- DB_REWRITE MISSING --- |
| 117 |
$children = db_query($sql); |
$children = db_query($sql); |
| 118 |
//Now hide a root book node |
//Now hide a root book node |
| 119 |
if ($mlid != $mlid_start) { |
if ($mlid != $mlid_start) { |