You are here

function _webform_defaults_civicrm_contact in Webform CiviCRM Integration 7.5

Same name and namespace in other branches
  1. 7.3 contact_component.inc \_webform_defaults_civicrm_contact()
  2. 7.4 includes/contact_component.inc \_webform_defaults_civicrm_contact()

Implements _webform_defaults_component().

1 call to _webform_defaults_civicrm_contact()
webform_civicrm_update_7300 in ./webform_civicrm.install
Note: There are differences in how contact references and relationships work in the 3.x branch. Read the upgrade instructions at http://drupal.org/node/1615380

File

includes/contact_component.inc, line 14

Code

function _webform_defaults_civicrm_contact() {
  return [
    'name' => '',
    'form_key' => NULL,
    'pid' => 0,
    'weight' => 0,
    'value' => '',
    'required' => 0,
    'extra' => [
      'search_prompt' => '',
      'none_prompt' => '',
      'results_display' => [
        'display_name',
      ],
      'allow_create' => 0,
      'widget' => 'autocomplete',
      'show_hidden_contact' => 0,
      'unique' => 0,
      'title_display' => 'before',
      'randomize' => 0,
      'description' => '',
      'no_autofill' => [],
      'hide_fields' => [],
      'hide_method' => 'hide',
      'no_hide_blank' => FALSE,
      'submit_disabled' => FALSE,
      'attributes' => [],
      'private' => FALSE,
      'default' => '',
      'default_contact_id' => '',
      'default_relationship' => '',
      'default_relationship_to' => '1',
      'default_custom_ref' => '',
      'default_for_case' => '1',
      'default_case_roles' => '',
      'allow_url_autofill' => TRUE,
      'dupes_allowed' => FALSE,
      'filters' => [
        'contact_sub_type' => 0,
        'group' => [],
        'tag' => [],
        'relationship' => [],
        'check_permissions' => 1,
      ],
    ],
  ];
}