mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
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:
committed by
Andy Miller
parent
772399d868
commit
91bda37957
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user