You are here

function double_field_field_widget_info in Double Field 7

Same name and namespace in other branches
  1. 7.2 double_field.module \double_field_field_widget_info()

Implements hook_field_widget_info().

File

./double_field.module, line 90
Defines double text field type.

Code

function double_field_field_widget_info() {
  $settings = array(
    'required' => TRUE,
    'size' => 10,
    'prefix' => '',
    'suffix' => '',
  );
  return array(
    'double_textfield' => array(
      'label' => t('Double textfield'),
      'field types' => array(
        'double_field',
      ),
      'settings' => array(
        'inline' => TRUE,
        'first' => $settings,
        'second' => $settings,
      ),
    ),
  );
}