/import_action
import action

Sourcecode in LayoutMgr/actions.js:
1:   function import_action() {
2:      if (req.data.cancel)
3:         res.redirect(this.href());
4:      else if (req.data["import"]) {
5:         try {
6:            var result = this.evalImport(req.data, session.user);
7:            res.message = result.toString();
8:            res.redirect(this.href());
9:         } catch (err) {
10:           res.message = err.toString();
11:        }
12:     }
13:     // render a list of root layouts that are shareable
14:     res.data.layoutlist = renderList(root.layouts.shareable, "chooserlistitem", 5, req.data.page);
15:     res.data.pagenavigation = renderPageNavigation(root.layouts.shareable, this.href(req.action), 5, req.data.page);
16:  
17:     res.data.title = getMessage("LayoutMgr.importTitle", {siteTitle: res.handlers.context.getTitle()});
18:     res.data.action = this.href(req.action);
19:     res.data.body = this.renderSkinAsString("import");
20:     res.handlers.context.renderSkin("page");
21:     return;
22:  }