);
//Add custom fields to columns array for inclusion in export
- $groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', $form, NULL,
- NULL, '', NULL
- );
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity');
//use simplified formatted groupTree
- $groupTree = CRM_Core_BAO_CustomGroup::formatGroupTree($groupTree, 1, $form);
+ $groupTree = CRM_Core_BAO_CustomGroup::formatGroupTree($groupTree);
//cycle through custom fields and assign to _columns array
foreach ($groupTree as $key) {
$this->_columns[$fieldlabel] = $field['column_name'];
}
}
- //end custom fields
}
/**
}
// add custom group fields to SELECT and FROM clause
- $groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', $form, NULL, NULL, '', NULL);
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', $this);
foreach ($groupTree as $key) {
if (!empty($key['extends']) && $key['extends'] == 'Activity') {
*
* @return array
*/
- public static function formatGroupTree(&$groupTree, $groupCount = 1, &$form) {
+ public static function formatGroupTree(&$groupTree, $groupCount = 1, &$form = NULL) {
$formattedGroupTree = array();
$uploadNames = array();