Last active
December 25, 2015 01:09
-
-
Save damiann/6892732 to your computer and use it in GitHub Desktop.
MODx Print Event Request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* checking the $resource object when event runs | |
*/ | |
switch ($modx->event->name) { | |
case 'OnBeforeDocFormSave': | |
$modx->log(modX::LOG_LEVEL_INFO, print_r($resource)); | |
break; | |
case 'OnDocFormSave': | |
$modx->log(modX::LOG_LEVEL_INFO, print_r($resource)); | |
break; | |
default: | |
break; | |
} | |
return; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment