filter:post.getFields change

v1.18.x
barisusakli 10 years ago
parent 604dac88e3
commit 383fa4d0ea

@ -101,12 +101,9 @@ var async = require('async'),
return callback(err);
}
// TODO: I think the plugins system needs an optional 'parameters' paramter so I don't have to do this:
data = data || {};
data.pid = pid;
data.fields = fields;
plugins.fireHook('filter:post.getFields', data, callback);
plugins.fireHook('filter:post.getFields', {post: data, fields: fields}, callback);
});
};

Loading…
Cancel
Save