X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurvey.php;h=3b4605a27d258ef197095d65f9a7560d3b85cd8e;hb=7c31ae578d5ddd411112a2f747255c022d7baa06;hp=5f1eef8a2bbde97e8f4faf1ab81c4e49ffdf216c;hpb=aebbcca99b6fe1be7dff8d1306d62a91fc8d3328;p=civicrm-core.git diff --git a/api/v3/Survey.php b/api/v3/Survey.php index 5f1eef8a2b..3b4605a27d 100644 --- a/api/v3/Survey.php +++ b/api/v3/Survey.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -35,7 +35,6 @@ * @package CiviCRM_APIv3 */ - /** * Create or update a survey. * @@ -99,12 +98,12 @@ function civicrm_api3_survey_delete($params) { * @return array */ function _civicrm_api3_survey_getlist_defaults(&$request) { - return array( - 'description_field' => array( + return [ + 'description_field' => [ 'campaign_id', - ), - 'params' => array( + ], + 'params' => [ 'is_active' => 1, - ), - ); + ], + ]; }