/[drupal]/contributions/modules/booktree/booktree.module
ViewVC logotype

Diff of /contributions/modules/booktree/booktree.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.12.2.1, Thu Jun 11 21:57:09 2009 UTC revision 1.12.2.2, Sat Jul 4 16:20:38 2009 UTC
# Line 1  Line 1 
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    
# Line 30  function booktree_menu() { Line 30  function booktree_menu() {
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'),
# Line 110  function booktree_mostra_figli( $mlid,$n Line 110  function booktree_mostra_figli( $mlid,$n
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) {

Legend:
Removed from v.1.12.2.1  
changed lines
  Added in v.1.12.2.2

  ViewVC Help
Powered by ViewVC 1.1.2