function setDefaultValues() { $defaults = array(); if ($this->_id) { $defaults = CRM_Hrjobcontract_BAO_HoursLocation::getDefaultValues($this->_id); } else { $defaults['is_active'] = 1; } return $defaults; }