Whitespace/comment cleanup
authorColeman Watts <coleman@civicrm.org>
Thu, 14 Aug 2014 20:35:37 +0000 (21:35 +0100)
committerColeman Watts <coleman@civicrm.org>
Thu, 14 Aug 2014 20:35:37 +0000 (21:35 +0100)
CRM/Campaign/Form/Campaign.php

index e29457c3fc3d2daa5fee7018a4017f8abb079d2c..4fbff48b158ffacf128b42f9a071b004b16fdf73 100644 (file)
@@ -136,7 +136,7 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
    *
    * @access public
    *
-   * @return void
+   * @return array
    */
   function setDefaultValues() {
     $defaults = $this->_values;
@@ -246,16 +246,14 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
     );
 
     // add Campaign Parent Id
-    $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(CRM_Utils_Array::value('parent_id', $this->_values),
-      $this->_campaignId
-    );
+    $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(CRM_Utils_Array::value('parent_id', $this->_values), $this->_campaignId);
     if (!empty($campaigns)) {
-      $this->addElement('select', 'parent_id', ts('Parent Id'),
-        array(
-          '' => ts('- select Parent -')) + $campaigns
+      $this->addElement('select', 'parent_id', ts('Parent ID'),
+        array('' => ts('- select Parent -')) + $campaigns,
+        array('class' => 'crm-select2')
       );
     }
-$groups = CRM_Core_PseudoConstant::nestedGroup();
+    $groups = CRM_Core_PseudoConstant::nestedGroup();
     //get the campaign groups.
     $this->add('select', 'includeGroups',
       ts('Include Group(s)'),
@@ -304,7 +302,7 @@ $groups = CRM_Core_PseudoConstant::nestedGroup();
    * @param $files
    * @param $errors
    *
-   * @return void
+   * @return bool|array
    * @access public
    * @see valid_date
    */