diff --git a/lam/lib/html.inc b/lam/lib/html.inc new file mode 100644 index 00000000..42b52297 --- /dev/null +++ b/lam/lib/html.inc @@ -0,0 +1,55 @@ + value) + * @param boolean $restricted If true then no buttons will be displayed + * @param integer $tabindex Start value of tabulator index for input fields + * @param string $scope Account type + * @return array List of input field names and their type (name => type) + */ + function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope); + +} + + +?> \ No newline at end of file diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index f7d0e0b2..a8c3c5d3 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -701,6 +701,10 @@ function getRequiredExtensions() { * @return array List of input field names and their type (name => type) */ function parseHtml($module, $input, $values, $restricted, &$tabindex, $scope) { + include_once("html.inc"); + if ($input instanceof htmlElement) { + return $input->generateHTML($module, $values, $restricted, $tabindex, $scope); + } $ret = array(); if (is_array($input)) { echo "\n";