diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-02 15:15:07 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-02 15:15:07 -0500 |
commit | 56e257d57db9de0a1d874e3fd3c1a259d824968f (patch) | |
tree | 4a44abfd29fadb637a70ac980d8e6193d3c81806 /includes/menu.inc | |
parent | 433fe74a8181189fc825d5d4ae43216c6eed71f2 (diff) | |
download | brdo-56e257d57db9de0a1d874e3fd3c1a259d824968f.tar.gz brdo-56e257d57db9de0a1d874e3fd3c1a259d824968f.tar.bz2 |
Issue #1854134 by EtienneRd, jeffam | dolu: Added a query tag to the query in menu_link_get_preferred() to allow modules to alter the query.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index fa5a71e73..2bfa39f66 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2495,6 +2495,7 @@ function menu_link_get_preferred($path = NULL, $selected_menu = NULL) { $query->addField('ml', 'weight', 'link_weight'); $query->fields('m'); $query->condition('ml.link_path', $path_candidates, 'IN'); + $query->addTag('preferred_menu_links'); // Sort candidates by link path and menu name. $candidates = array(); |