Add comments
authorColeman Watts <coleman@civicrm.org>
Tue, 21 Nov 2017 01:17:39 +0000 (20:17 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 21 Nov 2017 01:17:39 +0000 (20:17 -0500)
CRM/Export/Controller/Standalone.php

index c2540dcd70d5b9439c402872005d3e3451f7418d..0d3590ab6088de1301fb9135211487f9b770f3f3 100644 (file)
@@ -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'];