X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUF%2FForm%2FPreview.php;h=181f7d724fe9f8c6c2402af783ba02010daf6500;hb=8f6e04e904288b3307b8bb63acb82fbbec25a4f8;hp=f6928b5e7388a533dc868b29988113a93db5ec6e;hpb=8282c3dc7b991acb4665546aae5c18e1adaecf95;p=civicrm-core.git diff --git a/CRM/UF/Form/Preview.php b/CRM/UF/Form/Preview.php index f6928b5e73..181f7d724f 100644 --- a/CRM/UF/Form/Preview.php +++ b/CRM/UF/Form/Preview.php @@ -1,34 +1,18 @@ location_type_id) { $name .= '-' . $fieldDAO->location_type_id; @@ -131,13 +115,13 @@ class CRM_UF_Form_Preview extends CRM_UF_Form_AbstractPreview { public function buildQuickForm() { parent::buildQuickForm(); - $this->addButtons(array( - array( + $this->addButtons([ + [ 'type' => 'cancel', 'name' => ts('Done with Preview'), 'isDefault' => TRUE, - ), - )); + ], + ]); } }