Skip to content

Commit

Permalink
Merge pull request #16316 from eileenmcnaughton/parent
Browse files Browse the repository at this point in the history
Remove function that exactly matches parent class.
  • Loading branch information
seamuslee001 authored Jan 18, 2020
2 parents aa2b7eb + f14a62d commit 3ecd083
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 3ecd083

Please sign in to comment.