Skip to content

Commit

Permalink
Merge pull request #5 from blankogmbh/issue-4
Browse files Browse the repository at this point in the history
fix: remove User and Avatar hook
  • Loading branch information
thathoff committed Oct 29, 2015
2 parents 155f9a4 + 1582ddc commit 06c3567
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions git-commit-and-push-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,3 @@
kirby()->hook('panel.file.delete', function ($file) {
gitCommit('delete(file): ' . $file->page()->uri() . '/' . $file->filename());
});

/*
* User
*/
kirby()->hook('panel.user.create', function ($user) {
gitCommit('create(user): ' . $user->username());
});
kirby()->hook('panel.user.update', function ($user) {
gitCommit('update(user): ' . $user->username());
});
kirby()->hook('panel.user.delete', function ($user) {
gitCommit('delete(user): ' . $user->username());
});

/*
* Avatar
*/
kirby()->hook('panel.avatar.upload', function ($avatar) {
gitCommit('upload(avatar): ' . $avatar->filename());
});
kirby()->hook('panel.avatar.delete', function ($avatar) {
gitCommit('delete(avatar): ' . $avatar->filename());
});

0 comments on commit 06c3567

Please sign in to comment.