public function DoubleFieldWidget::getFormInput in Double Field 7.2
Create widget form input values.
File
- tests/
double_field_widget.inc, line 268 - 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 getFormInput($field_name, $delta = 0) {
return array(
$field_name . '[' . LANGUAGE_NONE . '][' . $delta . '][first]' => $this->value[$delta]['first'],
$field_name . '[' . LANGUAGE_NONE . '][' . $delta . '][second]' => $this->value[$delta]['second'],
);
}