PropertyModifierRegexReplace: failed to adjust the input fields

This commit is contained in:
Stefan Scheungrab 2015-07-23 15:13:07 +02:00
parent b43b8ee5e3
commit 396120a1ce

View File

@ -10,12 +10,12 @@ class PropertyModifierRegexReplace extends PropertyModifierHook
public static function addSettingsFormFields(QuickForm $form)
{
$form->addElement('text', 'start', array(
'label' => 'Start index',
$form->addElement('text', 'pattern', array(
'label' => 'Regex pattern',
'required' => true,
));
$form->addElement('text', 'start', array(
'label' => 'End index',
$form->addElement('text', 'replacement', array(
'label' => 'Replacement',
'required' => true,
));
return $form;