mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
27 lines
511 B
PHP
Executable File
27 lines
511 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|
|
?>
|