function page_manager_menu_link_alter

Watch menu links during the menu rebuild, and re-parent things if we need to.

File

page_manager/page_manager.module, line 1134

Code

function page_manager_menu_link_alter(&$item) {
    return;
    
    /** -- disabled, concept code --
      static $mlids = array();
      // Keep an array of mlids as links are saved that we can use later.
      if (isset($item['mlid'])) {
        $mlids[$item['path']] = $item['mlid'];
      }
    
      if (isset($item['parent_path'])) {
        if (isset($mlids[$item['parent_path']])) {
          $item['plid'] = $mlids[$item['parent_path']];
        }
        else {
          // Since we didn't already see an mlid, let's check the database for one.
          $mlid = db_query('SELECT mlid FROM {menu_links} WHERE router_path = :path', array('path' => $item['parent_path']))->fetchField();
          if ($mlid) {
            $item['plid'] = $mlid;
          }
        }
      }
     */
}