21 lines
540 B
PHP
21 lines
540 B
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* insert.formaddinputhiddenpart.php
|
||
|
*
|
||
|
* @(#) $Header: /opt2/ena/metal/forms/smarty/3/plugins/insert.formaddinputhiddenpart.php,v 1.1 2011/02/07 07:09:35 mlemos Exp $
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
function smarty_insert_formaddinputhiddenpart($params, &$smarty)
|
||
|
{
|
||
|
$form = $smarty->getTemplateVars('form');
|
||
|
if(!IsSet($form)
|
||
|
|| !is_a($form, 'form_class'))
|
||
|
throw(new Exception('the "form" template variable was not assigned to the form object'));
|
||
|
$form->AddDataPart($params['data']);
|
||
|
$form->AddInputHiddenPart($params['input']);
|
||
|
return '';
|
||
|
}
|
||
|
|
||
|
?>
|