? 890358-d7.patch
Index: footermap.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/footermap/footermap.module,v
retrieving revision 1.11.2.16.2.4
diff -u -p -r1.11.2.16.2.4 footermap.module
--- footermap.module	22 Jul 2010 19:29:54 -0000	1.11.2.16.2.4
+++ footermap.module	23 Aug 2010 18:19:33 -0000
@@ -19,6 +19,9 @@ function footermap_help($path, $arg)
   switch($path)
   {
     //TODO: add target link to block system help page
+    case 'admin/structure/footermap':
+      return '<p>' . t('You must enable the footermap block within Drupal\'s block management system: !link', array('!link' => l('admin/build/block', 'admin/build/block'))) . '</p>';
+      break;
     case 'admin/help#footermap':
       return '<p>' . t('Displays a dynamic, flexible sitemap at the bottom of a page via the Drupal block system. This is routinely used as a way of providing quick links at the bottom of the page. It is not advised to generate a full site map at the footer without caching.') . '</p>';
       break;
@@ -182,7 +185,7 @@ function footermap_get_menu($mlid, &$map
   else
     $system_menu = ' ';
 
-  $sql = 'SELECT * FROM {menu_links} ml LEFT OUTER JOIN {menu_router} mr ON (ml.router_path = mr.path) WHERE ml.plid = :mlid AND ml.hidden = 0' . $system_menu . 'ORDER BY ml.plid, ml.weight';
+  $sql = 'SELECT * FROM {menu_links} ml LEFT OUTER JOIN {menu_router} mr ON (ml.router_path = mr.path) WHERE ml.plid = :mlid AND ml.hidden = 0' . $system_menu . 'ORDER BY ml.plid, ml.weight, ml.link_title, mr.title';
 
   $res = db_query($sql, array('mlid' => $mlid));
 
