silverstripe-userforms/code/editor/EditableFormHeading.php

27 lines
511 B
PHP
Raw Normal View History

<?php
/**
* Allows an editor to insert a generic heading into a field
*
* @subpackage userforms
*/
class EditableFormHeading extends EditableFormField {
static $singular_name = 'Form heading';
static $plural_name = 'Form headings';
function getFormField() {
$labelField = new LabelField('FormHeadingLabel',$this->Title);
$labelField->addExtraClass('FormHeading');
return $labelField;
}
function showInReports() {
return false;
}
function showExtraOptions() {
return false;
}
}
?>