public function DoubleFieldWidget::setRequiredOptions in Double Field 7.2
Set 'required' widget settings.
File
- tests/
double_field_widget.inc, line 278 - The file contains a class that assists to test Double field widget types.
Class
- DoubleFieldWidget
- Helper class to test Double field widget types.
Code
public function setRequiredOptions($first, $second) {
$this->settings['first']['general']['required'] = $first;
$this->settings['second']['general']['required'] = $second;
}