X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCustom%2FForm%2FOption.php;h=14e7b509e16a9455650a1db786c62fbc02636033;hb=cc58f6c5756ba74b4a914e21bb011332d5d79c80;hp=96d8a42058a0b7cb161c56d2560a5f23aae46a2f;hpb=d48669c33083785178028c56352f2c1e839829a4;p=civicrm-core.git diff --git a/CRM/Custom/Form/Option.php b/CRM/Custom/Form/Option.php index 96d8a42058..14e7b509e1 100644 --- a/CRM/Custom/Form/Option.php +++ b/CRM/Custom/Form/Option.php @@ -1,34 +1,18 @@ $this->_id]); $this->assign('label', $option['label']); $this->addButtons([ - [ - 'type' => 'next', - 'name' => ts('Delete'), - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ] - ); + [ + 'type' => 'next', + 'name' => ts('Delete'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); } else { // lets trim all the whitespace @@ -196,22 +180,21 @@ class CRM_Custom_Form_Option extends CRM_Core_Form { // add buttons $this->addButtons([ - [ - 'type' => 'next', - 'name' => ts('Save'), - 'isDefault' => TRUE, - ], - [ - 'type' => 'next', - 'name' => ts('Save and New'), - 'subName' => 'new', - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ] - ); + [ + 'type' => 'next', + 'name' => ts('Save'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'next', + 'name' => ts('Save and New'), + 'subName' => 'new', + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); // if view mode pls freeze it with the done button. if ($this->_action & CRM_Core_Action::VIEW) {