lib/middleware/themes.js
function importThemes(req, res, next) {
  var options = req.connectionOptions;

  var themesToImport = req.body || [];

  if (!_.isArray(req.body)) {
    return next("Expected An Array Of Themes");
  }

  forms.importThemes(options, themesToImport, resultHandler(constants.resultTypes.themes, req, next));
}
function importThemes(req, res, next) {
  var options = req.connectionOptions;

  var themesToImport = req.body || [];

  if (!_.isArray(req.body)) {
    return next("Expected An Array Of Themes");
  }

  forms.importThemes(options, themesToImport, resultHandler(constants.resultTypes.themes, req, next));
}
function importThemes ( req , res , next ) { var options = req . connectionOptions ; var themesToImport = req . body || [ ] ; if ( ! _ . isArray ( req . body ) ) { return next ( "Expected An Array Of Themes" ) ; } forms . importThemes ( options , themesToImport , resultHandler ( constants . resultTypes . themes , req , next ) ) ; }
Importing Bulk Themes
@param req
@param res
@param next
Importing Bulk Themes