+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->assign('onPopupClose', $this->_onPopupClose);
//set the context for the profile
$this->assign('onPopupClose', $this->_onPopupClose);
//set the context for the profile
//Remove need for Profile module type when using reserved profiles [CRM-14488]
if (!$dao->N || (!$isProfile && !($dao->is_reserved && $canAdd))) {
CRM_Core_Error::fatal(ts('The requested Profile (gid=%1) is not configured to be used for \'Profile\' edit and view forms in its Settings. Contact the site administrator if you need assistance.',
//Remove need for Profile module type when using reserved profiles [CRM-14488]
if (!$dao->N || (!$isProfile && !($dao->is_reserved && $canAdd))) {
CRM_Core_Error::fatal(ts('The requested Profile (gid=%1) is not configured to be used for \'Profile\' edit and view forms in its Settings. Contact the site administrator if you need assistance.',
foreach (explode(',', $this->returnExtra) as $field) {
$field = trim($field);
$this->ajaxResponse['extra'][$field] = CRM_Utils_Array::value($field, $contact);
foreach (explode(',', $this->returnExtra) as $field) {
$field = trim($field);
$this->ajaxResponse['extra'][$field] = CRM_Utils_Array::value($field, $contact);
$contact = civicrm_api('contact', 'get', $contactParams);
$contact = reset($contact['values']);
$contact = civicrm_api('contact', 'get', $contactParams);
$contact = reset($contact['values']);