Shifted out the generic sub-menu building code from _user_functions() to _create_sub_menu().
Authored by: bugman 2010-12-08
Parent: [r11738]
Child: [r11740]