1
0
Fork 0
feedizer-php/htdocs/libraries/formsgeneration/smarty/3/plugins/insert.formaddinputpart.php

21 lines
516 B
PHP
Raw Permalink Normal View History

2015-11-13 23:51:46 +01:00
<?php
/*
* insert.formaddinputpart.php
*
* @(#) $Header: /opt2/ena/metal/forms/smarty/3/plugins/insert.formaddinputpart.php,v 1.1 2011/02/07 07:09:35 mlemos Exp $
*
*/
function smarty_insert_formaddinputpart($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->AddInputPart($params['input']);
return '';
}
?>