$udf->setDateFormat($user_data['date_format']);
 } else {
     $udf->setDateFormat($user_data['other_date_format']);
 }
 $udf->setTimeFormat($user_data['time_format']);
 $udf->setTimeUnitFormat($user_data['time_unit_format']);
 $udf->setTimeZone($user_data['time_zone']);
 $udf->setItemsPerPage($user_data['items_per_page']);
 $udf->setStartWeekDay($user_data['start_week_day']);
 if (isset($user_data['enable_email_notification_exception'])) {
     $udf->setEnableEmailNotificationException(TRUE);
 } else {
     $udf->setEnableEmailNotificationException(FALSE);
 }
 if (isset($user_data['enable_email_notification_message'])) {
     $udf->setEnableEmailNotificationMessage(TRUE);
 } else {
     $udf->setEnableEmailNotificationMessage(FALSE);
 }
 if (isset($user_data['enable_email_notification_home'])) {
     $udf->setEnableEmailNotificationHome(TRUE);
 } else {
     $udf->setEnableEmailNotificationHome(FALSE);
 }
 if ($udf->isValid()) {
     $udf->Save(FALSE);
     if (isset($user_data['company_deduction_ids'])) {
         $udf->setCompanyDeduction($user_data['company_deduction_ids']);
     } else {
         $udf->setCompanyDeduction(array());
     }