Ghost/content/plugins/exampleFilters.js

27 lines
557 B
JavaScript
Raw Normal View History

2013-05-29 04:10:39 +04:00
(function(){
"use strict";
/**
* Because I didn't want to write over FancyFirstChar
*/
var ExampleFilter;
var ExampleFilter = function(ghost){
this.ghost = function() {
return ghost;
}
}
ExampleFilter.prototype.init = function() {
this.ghost().registerFilter('messWithAdmin', function(adminNavbar){
console.log('adminnavbar settings run');
delete adminNavbar.add;
return adminNavbar;
});
};
module.exports = ExampleFilter;
}());