Issue #1159596 by grafikchaos: Fixed Make PHP function names valid (remove the [widget-type] from the function names).