From f14a62d118376a704de9ce0e508cb712681bea2c Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 17 Jan 2020 14:29:18 +1300 Subject: [PATCH] Remove function that exactly matches parent class. I copied it over the parent class fn & apart from minor comment block differences it matches --- CRM/Core/Form/Task.php | 3 +-- CRM/Member/Form/Task.php | 26 -------------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/CRM/Core/Form/Task.php b/CRM/Core/Form/Task.php index 879bfc6a47..67ca0537ad 100644 --- a/CRM/Core/Form/Task.php +++ b/CRM/Core/Form/Task.php @@ -167,8 +167,7 @@ abstract class CRM_Core_Form_Task extends CRM_Core_Form { } /** - * Simple shell that derived classes can call to add buttons to - * the form with a customized title for the main Submit + * Add buttons to the form. * * @param string $title * Title of the main button. diff --git a/CRM/Member/Form/Task.php b/CRM/Member/Form/Task.php index 04a02b8f24..5f5791d01a 100644 --- a/CRM/Member/Form/Task.php +++ b/CRM/Member/Form/Task.php @@ -120,30 +120,4 @@ class CRM_Member_Form_Task extends CRM_Core_Form_Task { ); } - /** - * Simple shell that derived classes can call to add buttons to. - * the form with a customized title for the main Submit - * - * @param string $title - * Title of the main button. - * @param string $nextType - * @param string $backType - * @param bool $submitOnce - * - * @return void - */ - public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) { - $this->addButtons([ - [ - 'type' => $nextType, - 'name' => $title, - 'isDefault' => TRUE, - ], - [ - 'type' => $backType, - 'name' => ts('Cancel'), - ], - ]); - } - } -- 2.25.1