X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm.php;h=91728c21bec8a1d0959ae46f6a96f461e72241bb;hb=35071ccc53f3bce7ce3414871d61059a90c24604;hp=5167ab339dbf02bae15e1837e61ee0d10c0ee761;hpb=5dae6fbc87af4267a74674c5e0993751621bc61c;p=civicrm-core.git diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 5167ab339d..91728c21be 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -360,6 +360,9 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $this->assign('qfKey', $this->controller->_key); } + if ($this->controller->_entryURL) { + $this->addElement('hidden', 'entryURL', $this->controller->_entryURL); + } $this->buildQuickForm(); @@ -717,6 +720,28 @@ class CRM_Core_Form extends HTML_QuickForm_Page { self::$_template->assign_by_ref($var, $value); } + /** + * appends values to template variables + * + * @param array|string $tpl_var the template variable name(s) + * @param mixed $value the value to append + * @param bool $merge + */ + function append($tpl_var, $value=NULL, $merge=FALSE) { + self::$_template->append($tpl_var, $value, $merge); + } + + /** + * Returns an array containing template variables + * + * @param string $name + * @param string $type + * @return array + */ + function get_template_vars($name=null) { + return self::$_template->get_template_vars($name); + } + function &addRadio($name, $title, &$values, $attributes = NULL, $separator = NULL, $required = FALSE) { $options = array(); if (empty($attributes)) {