I want to print the default value of checkbox form API in drupal 6 in such a way that if it is not selected,it should print false.I have changed the return value to "true" so if the checkbox is checked .it is returning true,but if not checked,it should return "false".Here the default value is 0. how to print it false?
The output should be in this format:
$wgGroupPermissions['anonymous user']=Array ( [editall] => false; [read] => false;[write] => true; [import] => true ;[importupload] => true; [export] => false; [upload] => true )
But instead its giving output like this:
$wgGroupPermissions['anonymous user']=Array ( [editall] => 0 [read] => 0 [write] => true [import] => true [importupload] => true [export] => 0 [upload] => true )
Please help me,
Here is my custom module code of drupal 6
*****roleuseradd.info***
name = Role add users
description = Allows roles to be added as users.
core = 6.x
; Information added by drupal.org packaging script on 2010-09-13
version = "6.x-1.1"
core = "6.x"
project = "roleuseradd"
datestamp = "1284408708"
****roleuseradd.module***
<?php
/*
* Implementation of hook_form_alter()
*/
function roleuseradd_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'user_admin_new_role' || $form_id == 'user_admin_account'||$form_id == 'user_profile_form') {