fd0e86e allows a date input field to be a date_text instead of date_select. thus, all in one field rather than a bunch of date parts.
There are four types of changes in this commit:
Two checks for the widget type, date_text or date_select
Moved the anonymous function that fills in the result into a named function so that it can be called outside of the loop if we don't need to loop (date_text)
Indentation corrected in the changed blocks of code
Renamed the date variable to d so as not to overwrite the date() function which get used
fd0e86e allows a date input field to be a
date_text
instead ofdate_select
. thus, all in one field rather than a bunch of date parts. There are four types of changes in this commit:date_text
ordate_select
date_text
)date
variable tod
so as not to overwrite thedate()
function which get used