Skip to content

Commit

Permalink
Remove function that exactly matches parent class.
Browse files Browse the repository at this point in the history
I copied it over the parent class fn & apart from minor comment block differences it matches
  • Loading branch information
eileenmcnaughton committed Jan 17, 2020
1 parent 5a18a2c commit f14a62d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
3 changes: 1 addition & 2 deletions CRM/Core/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ public function setContactIDs() {
}

/**
* 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.
Expand Down
26 changes: 0 additions & 26 deletions CRM/Member/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,4 @@ public function setContactIDs() {
);
}

/**
* 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'),
],
]);
}

}

0 comments on commit f14a62d

Please sign in to comment.