Skip to content

Instantly share code, notes, and snippets.

@pepebe
Last active August 26, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepebe/2d2620925fd070c3cbd9d1747d1cf607 to your computer and use it in GitHub Desktop.
Save pepebe/2d2620925fd070c3cbd9d1747d1cf607 to your computer and use it in GitHub Desktop.
<?php
/*
write all formvalues as well as the complete formit config into modx error log
*/
$modx->log(xPDO::LOG_LEVEL_ERROR, "snippetname values: " . print_r($hook->getValues(), true));
$modx->log(xPDO::LOG_LEVEL_ERROR, "snippetname config: " . print_r($hook->formit->config, true));
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment