You are here

function civicrm_entity_contact_assign_rel_type_list_field_field_widget_info in CiviCRM Entity 7.2

Implements hook_field_widget_info().

File

modules/civicrm_entity_contact_assign_rel_type_list_field/civicrm_entity_contact_assign_rel_type_list_field.module, line 207
Provide CiviCRM Entity Contact Assign Relationship Type List Field Type. Provides a widget for adding/removing a contacts relationships to a configured global contact.

Code

function civicrm_entity_contact_assign_rel_type_list_field_field_widget_info() {
  return array(
    'civicrm_entity_contact_assign_relationship_type_list_field_checkboxes_widget' => array(
      'label' => t('Checkboxes'),
      'field types' => array(
        'civicrm_entity_contact_assign_relationship_type_list_field',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
    'civicrm_entity_contact_assign_relationship_type_list_field_radios_widget' => array(
      'label' => t('Radios'),
      'field types' => array(
        'civicrm_entity_contact_assign_relationship_type_list_field',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
  );
}