From: Tim Mallezie Date: Thu, 14 May 2015 06:18:29 +0000 (+0200) Subject: remove addcheckbox and addradiorename X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=021b5e8410dbfdb81e80a5e7f84739781bd81d69;p=civicrm-core.git remove addcheckbox and addradiorename --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 43e60e28c1..d5e95ef433 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -900,20 +900,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { return $group; } - /** - * @param string $name - * @param $title - * @param $values - * @param array $attributes - * @param null $separator - * @param bool $required - * - * @return HTML_QuickForm_group - */ - public function &addRadioGroup($name, $title, $values, $attributes = array(), $separator = NULL, $required = FALSE) { - return $this->addRadio($name, $title, $values, $attributes, $separator, $required); - } - /** * @param int $id * @param $title @@ -990,28 +976,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { } } - - /** - * @param int $id - * @param $title - * @param $values - * @param null $other - * @param null $attributes - * @param null $required - * @param null $javascriptMethod - * @param string $separator - * @param bool $flipValues - */ - public function addCheckBoxGroup( - $id, $title, $values, $other = NULL, $attributes = NULL, $required = NULL, - $javascriptMethod = NULL, $separator = '
', $flipValues = FALSE - ) { - $this->addCheckBox( - $id, $title, $values, $other, - $attributes, $required, $javascriptMethod, $separator, $flipValues - ); - } - public function resetValues() { $data = $this->controller->container(); $data['values'][$this->_name] = array(); @@ -1334,11 +1298,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page { break; case 'CheckBoxGroup': - $this->addCheckBoxGroup($name, $label, array_flip($options), $required, $props); + $this->addCheckBox($name, $label, array_flip($options), $required, $props); break; case 'RadioGroup': - $this->addRadioGroup($name, $label, $options, $props, NULL, $required); + $this->addRadio($name, $label, $options, $props, NULL, $required); break; //case 'AdvMulti-Select':