X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FForm%2FTask%2FRelease.php;h=bbb84df5e2f6493f9069479c185a7f722f99f8a2;hb=29d98e1314e345f1b9044f5359c2d0a67f380d21;hp=4b93452dfa8a76cd782b69d1e7ff7bc9880a3269;hpb=9747cc7e7676edd433c3c76e476a0fd0bd74ea7e;p=civicrm-core.git diff --git a/CRM/Campaign/Form/Task/Release.php b/CRM/Campaign/Form/Task/Release.php index 4b93452dfa..bbb84df5e2 100644 --- a/CRM/Campaign/Form/Task/Release.php +++ b/CRM/Campaign/Form/Task/Release.php @@ -1,7 +1,7 @@ _interviewToRelease = $this->get('interviewToRelease'); if ($this->_interviewToRelease) { //user came from interview form. foreach (array( - 'surveyId', 'contactIds', 'interviewerId') as $fld) { + 'surveyId', + 'contactIds', + 'interviewerId' + ) as $fld) { $this->{"_$fld"} = $this->get($fld); } @@ -104,7 +107,8 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task { $activityStatus = CRM_Core_PseudoConstant::activityStatus('name'); $statusIds = array(); foreach (array( - 'Scheduled') as $name) { + 'Scheduled' + ) as $name) { if ($statusId = array_search($name, $activityStatus)) { $statusIds[] = $statusId; } @@ -132,18 +136,17 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task { } /** - * Build the form + * Build the form object * - * @access public * * @return void */ - function buildQuickForm() { + public function buildQuickForm() { $this->addDefaultButtons(ts('Release Respondents'), 'done'); } - function postProcess() { + public function postProcess() { $deleteActivityIds = array(); foreach ($this->_contactIds as $cid) { if (array_key_exists($cid, $this->_surveyActivities)) { @@ -166,4 +169,3 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task { } } } -