winston.warn('[plugins/'+hookObj.id+'] "callbacked" deprecated as of 0.4x. Use asynchronous method instead for hook: '+hook);
next(null,[value]);
@ -353,7 +356,17 @@ var fs = require('fs'),
});
break;
case'action':
async.each(hookList,function(hookObj){
vardeprecationWarn=[];
async.each(hookList,function(hookObj,next){
/*
Backwardscompatibilityblockforv0.5.0
RemovethisonceNodeBBentersv0.5.0-1
*/
if(hook==='action:app.load'){
deprecationWarn.push(hookObj.id);
}
/* End backwards compatibility block */
if(hookObj.method){
hookObj.method.apply(Plugins,args);
}else{
@ -361,6 +374,15 @@ var fs = require('fs'),
winston.info('[plugins] Expected method \''+hookObj.method+'\' in plugin \''+hookObj.id+'\' not found, skipping.');
}
}
next();
},function(){
if(deprecationWarn.length){
winston.warn('[plugins] The `action:app.load` hook is deprecated in favour of `filter:app.load`, please notify the developers of the following plugins:');