/views/plugins/function.inputs.php
PHP | 19 lines | 11 code | 8 blank | 0 comment | 1 complexity | f6f4b536798d62ae5d95ba9a792cee2e MD5 | raw file
Possible License(s): LGPL-3.0
- <?php
- function smarty_function_inputs($params, $template) {
- if (empty($template->smarty->view->loaded['form'])) {
- trigger_error("{inputs} command requires Form helper.", E_USER_ERROR);
- }
-
- $fields = null;
-
- extract(compact('template') + $params);
-
- unset($params['fields']);
-
- $form = $template->smarty->view->loaded['form'];
-
-
- return $form->inputs($fields, $params);
- }