xarVarFetch('hide', 'int', $hmail, NULL, XARVAR_NOT_REQUIRED)
xarUserSetVar('hmail',$hmail)
** xarusergetvar('hmail') dd hooked to roles, its checkbox for controlling that user want to hide his mail or not
*** with this code, i am trying to bring checked status, and can edit.. however it all the time brings check box checked.
**** its something weird with xar checkboxes, normal html checkbox value works like a label, the check status controlled by: checked="checked" checked="yes" checked
however in xar checkbox value defines whether its checked or not, plus it controls checked status too.