public static function RulesDataUIDecimal::inputForm in Rules 7.2
Implements RulesDataDirectInputFormInterface::inputForm().
Overrides RulesDataUIText::inputForm
File
- ui/
ui.data.inc, line 301 - Contains data type related forms.
Class
- RulesDataUIDecimal
- UI for decimal data.
Code
public static function inputForm($name, $info, $settings, RulesPlugin $element) {
$form = parent::inputForm($name, $info, $settings, $element);
if (empty($info['options list'])) {
$form[$name]['#type'] = 'textfield';
}
$form[$name]['#element_validate'][] = 'rules_ui_element_decimal_validate';
$form[$name]['#rows'] = 1;
return $form;
}