FIX: #138 allow subsite summary fields to be customized

This commit is contained in:
Will Rossiter 2015-10-21 08:14:39 +13:00
parent 9c9e0bfa94
commit b979b38694

View File

@ -67,6 +67,15 @@ class Subsite extends DataObject {
*/
public static $check_is_public = true;
/**
* @return array
*/
private static $summary_fields = array(
'Title',
'PrimaryDomain',
'IsPublic'
);
/**
* Set allowed themes
*
@ -608,18 +617,6 @@ class Subsite extends DataObject {
return $labels;
}
/**
*
* @return array
*/
public function summaryFields() {
return array(
'Title' => $this->fieldLabel('Title'),
'PrimaryDomain' => $this->fieldLabel('PrimaryDomain'),
'IsPublic' => _t('Subsite.IsPublicHeaderField','Active subsite'),
);
}
/**
* Return the themes that can be used with this subsite, as an array of themecode => description