Last active
August 29, 2015 14:15
-
-
Save bwente/b2aa6da6e70cf41de116 to your computer and use it in GitHub Desktop.
Plugin to turn off ContentBlocks by default
This file contains 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 | |
$eventName = $modx->event->name; | |
switch($eventName) { | |
case 'OnDocFormRender': | |
if ($mode == modSystemEvent::MODE_NEW) { | |
$resource->setProperty('_isContentBlocks', false, 'contentblocks'); | |
} | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment