Passing function parameter to vardef

@rainolf
Look at the post. LogicHook to calculate field . The function in field has several parameters by default. The function can return html.

You can modify function ‘display’ of custom/modules/<module_name>/views/view.edit.php for change list of ‘enum’ type field as an alternate variant.