function _webform_defaults_civicrm_contact in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 7.5 includes/contact_component.inc \_webform_defaults_civicrm_contact()
- 7.3 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 array(
'name' => '',
'form_key' => NULL,
'pid' => 0,
'weight' => 0,
'value' => '',
'required' => 0,
'extra' => array(
'search_prompt' => '',
'none_prompt' => '',
'results_display' => array(
'display_name',
),
'allow_create' => 0,
'widget' => 'autocomplete',
'show_hidden_contact' => 0,
'unique' => 0,
'title_display' => 'before',
'randomize' => 0,
'description' => '',
'no_autofill' => array(),
'hide_fields' => array(),
'hide_method' => 'hide',
'no_hide_blank' => FALSE,
'submit_disabled' => FALSE,
'attributes' => array(),
'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' => array(
'contact_sub_type' => 0,
'group' => array(),
'tag' => array(),
'relationship' => array(),
'check_permissions' => 1,
),
),
);
}