added 'afterAdminSave' hook (#866)

* added 'afterAdminSave' hook

this event is fired just after the save was correctly completed from Admin plugin

* Change of the new event hook name

consistency oblige, new name is `onAdminAfterSave`
This commit is contained in:
Amélie Turgeon
2016-11-19 13:24:54 -05:00
committed by Andy Miller
parent 772399d868
commit 91bda37957

View File

@@ -532,6 +532,7 @@ class AdminController extends AdminBaseController
$this->grav->fireEvent('onAdminSave', new Event(['object' => &$obj]));
$obj->save($reorder);
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.SUCCESSFULLY_SAVED'), 'info');
$this->grav->fireEvent('onAdminAfterSave', new Event(['object' => &$obj]));
}
if ($this->view != 'pages') {