/** * This function sets the default values for the form. Note that in edit/view mode * the default values are retrieved from the database * * @access public * @return None */ function setDefaultValues() { $defaults = array(); if ($this->_action & CRM_CORE_ACTION_UPDATE) { if (isset($this->_id)) { $defaults['note'] = CRM_Core_BAO_Note::getNoteText($this->_id); } } return $defaults; }
/** * This function sets the default values for the form. Note that in edit/view mode * the default values are retrieved from the database * * @access public * @return None */ function setDefaultValues() { $defaults = array(); if ($this->_action & CRM_Core_Action::UPDATE) { if (isset($this->_id)) { $defaults['note'] = CRM_Core_BAO_Note::getNoteText($this->_id); $defaults['subject'] = CRM_Core_BAO_Note::getNoteSubject($this->_id); } } return $defaults; }