function allDone(err) { if(err) { calipso.log(err); next(err) } else { calipso.log("User module installed ... "); next(); } }
function allDone(err) { if(err) { next(err) } else { calipso.log("Content types module installed ... "); next(); } }
c.save(function(err) { if (err) { req.flash('error', req.t('Could not update the configuration because {msg}.',{msg:err.message})); if (res.statusCode != 302) { // Don't redirect if we already are, multiple errors res.redirect('/admin'); } } else { calipso.log(c); calipso.config = c; // TODO : This wont work on multiple edits res.redirect('/admin/reload'); } next(); });
Content.count({}, function (err, count) { var total = count; calipso.log("Reindexing " + total + " documents ..."); Content.find({},function (err, contents) { contents.forEach(function(item) { indexContent(item); }); req.flash('info',req.t('Re-indexing {msg} content items ... this may take some time!',{msg:total})); next(); }); });
/** * Template Job */ function templateJob(args, next) { calipso.log("Template job function called with args: " + args); next(); }
/** * Admin hook for reloading */ function reload() { calipso.log("Template module reloaded"); }
/** * hook for disabling */ function disable() { calipso.log("Template module disabled"); }
/** * Template installation hook */ function install() { calipso.log("Template module installed"); }
function reload() { calipso.log("Sample Content module reloaded"); }
function disable() { calipso.log("Sample Content module disabled"); }
function install() { calipso.log("Sample Content module installed"); }