silverstripe-subsites/code/extensions/CMSPageAddControllerExtension.php

9 lines
198 B
PHP
Raw Normal View History

<?php
class CMSPageAddControllerExtension extends Extension {
function updatePageOptions(&$fields) {
$fields->push(new HiddenField('SubsiteID', 'SubsiteID', Subsite::currentSubsiteID()));
}
}