silverstripe-subsites/code/extensions/CMSPageAddControllerExtension.php
2015-11-23 16:53:45 +13:00

9 lines
219 B
PHP

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