+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
private $_allowAjaxReleaseButton;
/**
- * Build all the data structures needed to build the form
+ * Build all the data structures needed to build the form.
*
* @return void
*/
$orderByParams = CRM_Utils_Array::value('order_bys', $_POST);
}
elseif (CRM_Core_OptionGroup::getValue('activity_type', 'WalkList') == $this->_surveyDetails['activity_type_id']) {
- $orderByParams =
- array(
+ $orderByParams
+ = array(
1 => array(
'column' => 'civicrm_address.street_name',
'order' => 'ASC',
}
/**
- * Build the form object
+ * Build the form object.
*
*
* @return void
public function buildQuickForm() {
$this->assign('surveyTypeId', $this->_surveyTypeId);
- $options =
- array(
+ $options
+ = array(
'' => ' - none - ',
'civicrm_address.street_name' => 'Street Name',
'civicrm_address.street_number%2' => 'Odd / Even Street Number',
}
if (CRM_Core_OptionGroup::getValue('activity_type', 'WalkList') == $this->_surveyDetails['activity_type_id']) {
- $defaults['order_bys'] =
- array(
+ $defaults['order_bys']
+ = array(
1 => array(
'column' => 'civicrm_address.street_name',
'order' => 'ASC',
);
}
else {
- $defaults['order_bys'] =
- array(
+ $defaults['order_bys']
+ = array(
1 => array(
'column' => 'contact_a.sort_name',
'order' => 'ASC',
}
/**
- * Process the form after the input has been submitted and validated
+ * Process the form after the input has been submitted and validated.
*
*
* @return void
$subject = '';
$surveyTitle = CRM_Utils_Array::value('surveyTitle', $params);
if ($surveyTitle) {
- $subject = ts('%1', array(1 => $surveyTitle));
- $subject .= ' - ';
+ $subject = $surveyTitle . ' - ';
}
$subject .= ts('Respondent Interview');
}
}
}
+
}