MDL-41451 - formslib: use create_function instead of inline function
MDL-41451 - formslib: use create_function instead of inline function

As per MDL-39432, closure-style inline functions can result in fatal
errors when using eAccelerator and thus should be avoided.

dilawar/moodle