RSS

(root)/drupal/7-fic : 14.1.14 : includes/menu.inc

« back to all changes in this revision

Viewing changes to includes/menu.inc

bzr
2008-12-20 19:00:05
This revision was merged to the branch mainline in revision 316.
Revision ID: bzr@web3.fourkitchens.com-20081220190005-uq28yg3zmtg98v4w
Scheduled update from HEAD: Sat Dec 20 19:00:05 GMT 2008

Show diffs side-by-side

added added

removed removed

1
1
<?php
2
 
// $Id: menu.inc,v 1.307 2008/12/03 14:38:59 dries Exp $
 
2
// $Id: menu.inc,v 1.308 2008/12/20 18:24:33 dries Exp $
3
3
 
4
4
/**
5
5
 * @file
239
239
 * part of the path. If the bit is 1, then it represents the original
240
240
 * value while 0 means wildcard. If the path is node/12/edit/foo
241
241
 * then the 1011 bitstring represents node/%/edit/foo where % means that
242
 
 * any argument matches that part.  We limit ourselves to using binary
 
242
 * any argument matches that part. We limit ourselves to using binary
243
243
 * numbers that correspond the patterns of wildcards of router items that
244
 
 * actually exists.  This list of 'masks' is built in menu_rebuild().
 
244
 * actually exists. This list of 'masks' is built in menu_rebuild().
245
245
 *
246
246
 * @param $parts
247
247
 *   An array of path parts, for the above example
822
822
 * @param $menu_name
823
823
 *   The named menu links to return
824
824
 * @param $item
825
 
 *   A fully loaded menu link, or NULL.  If a link is supplied, only the
 
825
 *   A fully loaded menu link, or NULL. If a link is supplied, only the
826
826
 *   path to root will be included in the returned tree- as if this link
827
827
 *   represented the current page in a visible menu.
828
828
 * @return
887
887
        // Get all links in this menu.
888
888
        $parents = array();
889
889
      }
890
 
      // Select the links from the table, and recursively build the tree.  We
 
890
      // Select the links from the table, and recursively build the tree. We
891
891
      // LEFT JOIN since there is no match in {menu_router} for an external
892
892
      // link.
893
893
      $data['tree'] = menu_tree_data($query->execute(), $parents);
1621
1621
    if ($item['tab_parent']) {
1622
1622
      // The title of a local task is used for the tab, never the page title.
1623
1623
      // Thus, replace it with the item corresponding to the root path to get
1624
 
      // the relevant href and title.  For example, the menu item corresponding
 
1624
      // the relevant href and title. For example, the menu item corresponding
1625
1625
      // to 'admin' is used when on the 'By module' tab at 'admin/by-module'.
1626
1626
      $parts = explode('/', $item['tab_root']);
1627
1627
      $args = arg();
1759
1759
}
1760
1760
 
1761
1761
/**
1762
 
 * Clears all cached menu data.  This should be called any time broad changes
 
1762
 * Clears all cached menu data. This should be called any time broad changes
1763
1763
 * might have been made to the router items or menu links.
1764
1764
 */
1765
1765
function menu_cache_clear_all() {

Loggerhead 1.17 is a web-based interface for Bazaar branches