ss->assign("IMPORT_MODULE", $_REQUEST['import_module']); // lookup this module's $mod_strings to get the correct module name $old_mod_strings = $mod_strings; $module_mod_strings = return_module_language($current_language, $_REQUEST['import_module']); $this->ss->assign("MODULENAME",$module_mod_strings['LBL_MODULE_NAME']); // reset old ones afterwards $mod_strings = $old_mod_strings; $last_import = new UsersLastImport(); $this->ss->assign('UNDO_SUCCESS',$last_import->undo($_REQUEST['import_module'])); $this->ss->assign("JAVASCRIPT", $this->_getJS()); $this->ss->display('modules/Import/tpls/undo.tpl'); } /** * Returns JS used in this view */ private function _getJS() { return << EOJAVASCRIPT; } }