diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-10-29 08:30:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-10-29 08:30:32 +0000 |
commit | 5148a9dd902ff96559c7df1915dae512a275147c (patch) | |
tree | c0be4dace5b6acc5719963d552837ffbad77d1bc | |
parent | ebc412607ee301b6615ae91bbb8112d72c9cadc0 (diff) | |
download | acf-core-5148a9dd902ff96559c7df1915dae512a275147c.tar.bz2 acf-core-5148a9dd902ff96559c7df1915dae512a275147c.tar.xz |
Added output of default value for form items.
-rw-r--r-- | lib/viewfunctions.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index 5950af1..833d5b4 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -94,6 +94,7 @@ function displayformitem(myitem, name, viewtype, header_level, group) end if myitem.type ~= "hidden" and myitem.type ~= "group" then if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(html.html_escape(myitem.descr), "\n", "<BR>") .. "</P>\n") end + if myitem.default then io.write('<P CLASS="descr">Default:' .. string.gsub(html.html_escape(myitem.default), "\n", "<BR>") .. "</P>\n") end if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(html.html_escape(myitem.errtxt), "\n", "<BR>") .. "</P>\n") end io.write("</DD>\n") end |