You are here

function entityreference_dragdrop_field_widget_info in Entity Reference Drag & Drop 7

Implements hook_field_widget_info().

File

./entityreference_dragdrop.module, line 10
Provides a Drag & Drop widget for entity-reference fields.

Code

function entityreference_dragdrop_field_widget_info() {
  return array(
    'entityreference_dragdrop' => array(
      'label' => t('Drag & Drop'),
      'field types' => array(
        'entityreference',
      ),
      'settings' => array(
        'view_mode' => 'title',
        'available_entities_label' => t('Available entities'),
        'selected_entities_label' => t('Selected entities'),
        'display_filter' => 0,
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
      ),
    ),
  );
}