I was getting a bunch of undefined variable errors, and looking at the other funcitons in formfunctions.php, I could see that they were passing a default value for $current. So I've just passed a default value for $current to the buildFormInput function as well.
I was getting a bunch of undefined variable errors, and looking at the other funcitons in formfunctions.php, I could see that they were passing a default value for $current. So I've just passed a default value for $current to the buildFormInput function as well.