mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
./nodebb reset widgets - global widgets as well
This commit is contained in:
@@ -75,7 +75,12 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
Widgets.reset = function(callback) {
|
||||
plugins.fireHook('filter:widgets.getAreas', [], function(err, areas) {
|
||||
var defaultAreas = [
|
||||
{ name: 'Global Sidebar', template: 'global', location: 'sidebar' },
|
||||
{ name: 'Global Footer', template: 'global', location: 'footer' },
|
||||
];
|
||||
|
||||
plugins.fireHook('filter:widgets.getAreas', defaultAreas, function(err, areas) {
|
||||
var drafts = [];
|
||||
|
||||
async.each(areas, function(area, next) {
|
||||
|
||||
Reference in New Issue
Block a user