extend function.menu
Merge pull request #1512 from christopheschwyzer/issue-1512

extend function.menu.php