1
0
mirror of https://github.com/silverstripe/silverstripe-subsites synced 2024-10-22 09:05:55 +00:00
silverstripe-subsites/code/extensions/CMSPageAddControllerExtension.php

9 lines
198 B
PHP
Raw Permalink Normal View History

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