function activar_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm) { if (!isset($_GET['id']) || !is_numeric($_GET['id'])) { return false; } $oDataForm = new paloSantoDataForm($pDB); if ($oDataForm->activar_formulario($_GET['id'])) { header("Location: ?menu={$module_name}"); } else { $smarty->assign("mb_title", _tr('Activate Error')); $smarty->assign("mb_message", _tr('Error when Activating the form')); } }