summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-06 15:51:02 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-06 15:51:02 +0200
commitde7320bb78f02baa3b7cad3983d5b6d3a9c74f34 (patch)
tree15462460ed4e9adb805308406a9f84e332b8c609
parent2f41936b5e565e89286edf734f49ef7d3e72586b (diff)
Changed the radio() and checkbox() functions to default to not checked by default.
-rw-r--r--system/helpers/form_helper.php4
-rw-r--r--user_guide/changelog.html1
2 files changed, 3 insertions, 2 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 10858339e..c9a6897ae 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -289,7 +289,7 @@ if (! function_exists('form_dropdown'))
*/
if (! function_exists('form_checkbox'))
{
- function form_checkbox($data = '', $value = '', $checked = TRUE, $extra = '')
+ function form_checkbox($data = '', $value = '', $checked = FALSE, $extra = '')
{
$defaults = array('type' => 'checkbox', 'name' => ((! is_array($data)) ? $data : ''), 'value' => $value);
@@ -330,7 +330,7 @@ if (! function_exists('form_checkbox'))
*/
if (! function_exists('form_radio'))
{
- function form_radio($data = '', $value = '', $checked = TRUE, $extra = '')
+ function form_radio($data = '', $value = '', $checked = FALSE, $extra = '')
{
if (! is_array($data))
{
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 181ccd1e7..fec2d12c3 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -90,6 +90,7 @@ SVN Commit: not currently released</p>
<li>Helpers
<ul>
<li>Added <kbd>form_button()</kbd> in the <a href="helpers/form_helper.html">Form helper</a>.</li>
+ <li>Changed the radio() and checkbox() functions to default to not checked by default.</li>
<li>Added the ability to include an optional HTTP Response Code in the <kbd>redirect()</kbd> function of the <a href="helpers/url_helper.html">URL Helper</a>.</li>
<li>Modified <kbd>img()</kbd> in the <a href="helpers/html_helper.html">HTML Helper</a> to remove an unneeded space (#4208).</li>
<li>Modified <kbd>anchor()</kbd> in the <a href="helpers/url_helper.html">URL helper</a> to convert entities in the title attribute (#4209).</li>