silverstripe-subsites/code/extensions/CMSPageAddControllerExtension.php

9 lines
219 B
PHP
Raw Normal View History

<?php
2015-11-23 04:53:45 +01:00
class CMSPageAddControllerExtension extends Extension
{
public function updatePageOptions(&$fields)
{
$fields->push(new HiddenField('SubsiteID', 'SubsiteID', Subsite::currentSubsiteID()));
}
}