// names and titles
$links[CRM_Core_Action::VIEW] = array(
'name' => ts('View'),
- 'title' => ts('View %1', array( 1 => $this->_customGroupTitle . ' record')),
+ 'title' => ts('View %1', array(1 => $this->_customGroupTitle . ' record')),
);
$links[CRM_Core_Action::UPDATE] = array(
'name' => ts('Edit'),
- 'title' => ts('Edit %1', array( 1 => $this->_customGroupTitle . ' record')),
+ 'title' => ts('Edit %1', array(1 => $this->_customGroupTitle . ' record')),
);
$links[CRM_Core_Action::DELETE] = array(
'name' => ts('Delete'),
- 'title' => ts('Delete %1', array( 1 => $this->_customGroupTitle . ' record')),
+ 'title' => ts('Delete %1', array(1 => $this->_customGroupTitle . ' record')),
);
// urls and queryStrings
// copy action
$links[CRM_Core_Action::COPY] = array(
'name' => ts('Copy'),
- 'title' => ts('Copy %1', array( 1 => $this->_customGroupTitle . ' record')),
+ 'title' => ts('Copy %1', array(1 => $this->_customGroupTitle . ' record')),
'url' => 'civicrm/contact/view/cd/edit',
'qs' => 'reset=1&type=%%type%%&groupID=%%groupID%%&entityID=%%entityID%%&cgcount=%%newCgCount%%&multiRecordDisplay=single©ValueId=%%cgcount%%&mode=copy'
);
NULL,
CRM_Core_Permission::EDIT
);
- $multiRecordFields = array( );
+ $multiRecordFields = array();
$fieldIDs = NULL;
$result = NULL;
$multiRecordFieldsWithSummaryListing = CRM_Core_BAO_UFGroup::shiftMultiRecordFields($fields, $multiRecordFields, TRUE);
$this->_customGroupTitle = $groupDetail[$customGroupId]['title'];
}
if ($fieldIDs && !empty($fieldIDs) && $this->_contactId) {
- $options = array( );
+ $options = array();
$returnProperities = array('html_type', 'data_type', 'date_format', 'time_format', 'default_value', 'is_required');
foreach ($fieldIDs as $key => $fieldID) {
$fieldIDs[$key] = !is_numeric($fieldID) ? CRM_Core_BAO_CustomField::getKeyID($fieldID) : $fieldID;
$param = array('id' => $fieldIDs[$key]);
- $returnValues = array( );
+ $returnValues = array();
CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_CustomField', $param, $returnValues, $returnProperities);
if ($returnValues['data_type'] == 'Date') {
$dateFields[$fieldIDs[$key]] = 1;
$supportedDataTypes = array('Float', 'String', 'Int');
$editable = in_array($spec['data_type'], $supportedDataTypes);
break;
+
case 'TextArea':
$editable = TRUE;
$fieldAttributes['data-type'] = 'textarea';
break;
+
case 'Radio':
case 'Select':
case 'Select Country':
$op = NULL;
if ($this->_pageViewType == 'profileDataView') {
- $actionParams = array('recordId' => $recId, 'gid' => $this->_profileId,
+ $actionParams = array(
+ 'recordId' => $recId,
+ 'gid' => $this->_profileId,
'id' => $this->_contactId);
$op = 'profile.multiValue.row';
}
}
}
- $headers = array( );
+ $headers = array();
if (!empty($fieldIDs)) {
foreach ($fieldIDs as $fieldID) {
$headers[$fieldID] = ($this->_pageViewType == 'profileDataView') ? $customGroupInfo[$fieldID]['fieldLabel'] : $fieldLabels[$fieldID]['label'];
}
}
$this->assign('dateFields', $dateFields);
- $this->assign('dateFieldsVals',$dateFieldsVals);
+ $this->assign('dateFieldsVals', $dateFieldsVals);
$this->assign('cgcount', $cgcount);
$this->assign('customGroupTitle', $this->_customGroupTitle);
$this->assign('headers', $headers);