From f227c593ff9235299144545aac41eafe5a9afae1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 20 Nov 2017 20:17:39 -0500 Subject: [PATCH] Add comments --- CRM/Export/Controller/Standalone.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Export/Controller/Standalone.php b/CRM/Export/Controller/Standalone.php index c2540dcd70..0d3590ab60 100644 --- a/CRM/Export/Controller/Standalone.php +++ b/CRM/Export/Controller/Standalone.php @@ -68,7 +68,8 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller { } /** - * + * Export forms are historically tightly coupled to search forms,so this simulates + * the output of a search form, with an array of checkboxes for each selected entity. * * @param string $pageName * @return array @@ -81,6 +82,7 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller { $values[CRM_Core_Form::CB_PREFIX . $id] = 1; } } + // Set the "task" selector value to Export $className = 'CRM_' . $this->get('entity') . '_Task'; foreach ($className::tasks() as $taskId => $task) { $taskForm = (array) $task['class']; -- 2.25.1