+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add');
$this->_dedupeButtonName = $this->getButtonName('refresh', 'dedupe');
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add');
$this->_dedupeButtonName = $this->getButtonName('refresh', 'dedupe');
$locationTypeKeys = array_filter(array_keys(CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id')), 'is_int');
sort($locationTypeKeys);
$locationTypeKeys = array_filter(array_keys(CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id')), 'is_int');
sort($locationTypeKeys);
// skip adding formRules when custom data is build
if ($this->_addBlockName || ($this->_action & CRM_Core_Action::DELETE)) {
return;
// skip adding formRules when custom data is build
if ($this->_addBlockName || ($this->_action & CRM_Core_Action::DELETE)) {
return;
*
* @param array $fields posted values of the form
* @param array $errors list of errors to be posted back to the form
* @param int $contactId contact id if doing update.
*
* @return bool $primaryID email/openId@static
*
* @param array $fields posted values of the form
* @param array $errors list of errors to be posted back to the form
* @param int $contactId contact id if doing update.
*
* @return bool $primaryID email/openId@static
*
* @param array $fields the hierarchical value representation of this location
*
* @return boolean true if data exists, false otherwise
* @static
*
* @param array $fields the hierarchical value representation of this location
*
* @return boolean true if data exists, false otherwise
* @static
*
* @param array $fields fields array which are submitted
* @param $errors
* @param int $contactID contact id
* @param string $contactType contact type
*
*
* @param array $fields fields array which are submitted
* @param $errors
* @param int $contactID contact id
* @param string $contactType contact type
*
- static function checkDuplicateContacts(&$fields, &$errors, $contactID, $contactType) {
+ public static function checkDuplicateContacts(&$fields, &$errors, $contactID, $contactType) {
// if this is a forced save, ignore find duplicate rule
if (empty($fields['_qf_Contact_upload_duplicate'])) {
// if this is a forced save, ignore find duplicate rule
if (empty($fields['_qf_Contact_upload_duplicate'])) {
if ($this->_contactSubType) {
$templateFile = "CRM/Contact/Form/Edit/SubType/{$this->_contactSubType}.tpl";
$template = CRM_Core_Form::getTemplate();
if ($this->_contactSubType) {
$templateFile = "CRM/Contact/Form/Edit/SubType/{$this->_contactSubType}.tpl";
$template = CRM_Core_Form::getTemplate();
* This function either parse street address in to child
* elements or build street address from child elements.
*
* This function either parse street address in to child
* elements or build street address from child elements.
*
$parseSuccess = $parsedFields = array();
if (!is_array($params['address']) ||
CRM_Utils_System::isNull($params['address'])
$parseSuccess = $parsedFields = array();
if (!is_array($params['address']) ||
CRM_Utils_System::isNull($params['address'])
* function return the status message for all address blocks.
*
* @param $parseResult an array of address blk instance and its status.
*
* @return null|string $statusMsg string status message for all address blocks.@static
*/
* function return the status message for all address blocks.
*
* @param $parseResult an array of address blk instance and its status.
*
* @return null|string $statusMsg string status message for all address blocks.@static
*/
$updateMembershipMsg = NULL;
$contactId = CRM_Utils_Array::value('contact_id', $deceasedParams);
$deceasedDate = CRM_Utils_Array::value('deceased_date', $deceasedParams);
$updateMembershipMsg = NULL;
$contactId = CRM_Utils_Array::value('contact_id', $deceasedParams);
$deceasedDate = CRM_Utils_Array::value('deceased_date', $deceasedParams);