# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: D:\drupaldev\svv.ch\sites\all\modules\contrib\power_menu
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: power_menu.module
--- power_menu.module Base (BASE)
+++ power_menu.module Locally Modified (Based On LOCAL)
@@ -581,6 +581,9 @@
       if ($mlid > 0) { //we have a node that is in the menu
         $href = db_result(db_query("select ml2.link_path FROM {menu_links} ml INNER JOIN {menu_links} ml2 ON ml.plid = ml2.mlid WHERE ml.mlid=%d", $mlid));
       }
+      else if (($href = db_result(db_query("SELECT path FROM {power_menu} WHERE nodetype='%s' AND menu_name = '%s'", array($node->type, $pm)))) != '') {
+        // a node type that belongs to a defined menu entry
+      }
\ No newline at end of file
       else if (!empty($node->taxonomy)) { // a node that belongs to the taxonomy
         $href = _power_menu_get_node_location_taxonomy($node, $pm);
       }
