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

Diff of /contributions/modules/simplemenu/simplemenu.module

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

revision 1.10.2.1, Wed Apr 1 01:39:51 2009 UTC revision 1.10.2.2, Wed Apr 1 02:15:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simplemenu.module,v 1.10 2008/12/12 06:24:18 rz Exp $  // $Id: simplemenu.module,v 1.10.2.1 2009/04/01 01:39:51 rz Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 65  function simplemenu_init() { Line 65  function simplemenu_init() {
65    
66      drupal_add_js(array('simplemenu' => $settings), 'setting');      drupal_add_js(array('simplemenu' => $settings), 'setting');
67    
68      $simplemenu = drupal_to_js(simplemenu_get_menu());      //$simplemenu = drupal_to_js(simplemenu_get_menu());
69    
70      drupal_add_js('var simplemenu = '. drupal_to_js(simplemenu_get_menu()) .';', 'inline');      //drupal_add_js('var simplemenu = '. drupal_to_js(simplemenu_get_menu()) .';', 'inline');
71      drupal_add_js($path .'/simplemenu.js');      drupal_add_js($path .'/simplemenu.js');
72      drupal_add_js($path .'/superfish.js');      drupal_add_js($path .'/superfish.js');
73    }    }
74  }  }
75    
76  /**  /**
77     * Implementation of hook_footer().
78     */
79    function simplemenu_footer() {
80      $simplemenu = simplemenu_get_menu();
81      return $simplemenu;
82    }
83    
84    /**
85   * Implementation of hook_perm().   * Implementation of hook_perm().
86   */   */
87  function simplemenu_perm() {  function simplemenu_perm() {
# Line 221  function simplemenu_get_menu() { Line 229  function simplemenu_get_menu() {
229    }    }
230    
231    // render for output    // render for output
232    $output = simplemenu_tree_output($tree);    $output = simplemenu_tree_output($tree, array('id' => 'simplemenu'));
233    
234    return $output;    return $output;
235  }  }
# Line 263  function simplemenu_compact_menu_tree($t Line 271  function simplemenu_compact_menu_tree($t
271        if (empty($link['localized_options'])) {        if (empty($link['localized_options'])) {
272          $link['localized_options'] = array();          $link['localized_options'] = array();
273        }        }
274          unset($link['localized_options']['attributes'] ['title']);
275    
276        $link = l($link['title'], $link['href'], $link['localized_options']);        $link = l($link['title'], $link['href'], $link['localized_options']);
277        if($data['below']) {        if($data['below']) {

Legend:
Removed from v.1.10.2.1  
changed lines
  Added in v.1.10.2.2

  ViewVC Help
Powered by ViewVC 1.1.2