/views/plugins/function.meridian.php
PHP | 20 lines | 13 code | 7 blank | 0 comment | 1 complexity | 7618395a7e23af8c86feb5995ebcdc90 MD5 | raw file
Possible License(s): LGPL-3.0
- <?php
- function smarty_function_meridian($params, $template) {
- if (empty($template->smarty->view->loaded['form'])) {
- trigger_error("{meridian} command requires Form helper.", E_USER_ERROR);
- }
-
- $name = 'meridian';
- $selected = null;
-
- extract(compact('template') + $params);
-
- unset($params['name']);
- unset($params['selected']);
-
- $form = $template->smarty->view->loaded['form'];
-
- return $form->meridian($name, $selected, $params);
- }