Skip to content

Instantly share code, notes, and snippets.

@petednz
Created October 28, 2018 22:07
Show Gist options
  • Save petednz/4eafcce63e3c63c688518a4201a951aa to your computer and use it in GitHub Desktop.
Save petednz/4eafcce63e3c63c688518a4201a951aa to your computer and use it in GitHub Desktop.
array(
(object) array(
'vid' => '51',
'uid' => '2',
'title' => 'test change case type',
'log' => '',
'status' => '1',
'comment' => '1',
'promote' => '0',
'sticky' => '0',
'vuuid' => '4c26e116-78aa-4373-ad86-7e987e97ffa9',
'nid' => '51',
'type' => 'webform',
'language' => 'und',
'created' => '1540763521',
'changed' => '1540763521',
'tnid' => '0',
'translate' => '0',
'uuid' => '4ef2858a-46c2-40e3-88d6-80deaa50807b',
'revision_timestamp' => '1540763521',
'revision_uid' => '2',
'body' => array(),
'rdf_mapping' => array(
'rdftype' => array(
'sioc:Item',
'foaf:Document',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:date',
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
'content:encoded',
),
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
'foaf:name',
),
),
'comment_count' => array(
'predicates' => array(
'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
),
'path' => array(
'pid' => '186',
'source' => 'node/51',
'alias' => 'content/test-change-case-type',
'language' => 'und',
),
'webform' => array(
'nid' => '51',
'next_serial' => '2',
'confirmation' => '',
'confirmation_format' => NULL,
'redirect_url' => '<confirmation>',
'status' => '1',
'block' => '0',
'allow_draft' => '0',
'auto_save' => '0',
'submit_notice' => '1',
'confidential' => '0',
'submit_text' => '',
'submit_limit' => '-1',
'submit_interval' => '-1',
'total_submit_limit' => '-1',
'total_submit_interval' => '-1',
'progressbar_bar' => '1',
'progressbar_page_number' => '0',
'progressbar_percent' => '0',
'progressbar_pagebreak_labels' => '1',
'progressbar_include_confirmation' => '1',
'progressbar_label_first' => 'Start',
'progressbar_label_confirmation' => 'Complete',
'preview' => '0',
'preview_next_button_label' => '',
'preview_prev_button_label' => '',
'preview_title' => '',
'preview_message' => '',
'preview_message_format' => NULL,
'preview_excluded_components' => array(),
'record_exists' => TRUE,
'roles' => array(
'1',
'2',
),
'emails' => array(),
'components' => array(
1 => array(
'nid' => 51,
'cid' => '1',
'pid' => '0',
'form_key' => 'civicrm_1_contact_1_fieldset_fieldset',
'name' => 'Contact 1',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
'description_above' => FALSE,
'private' => FALSE,
),
'required' => '0',
'weight' => '1',
'page_num' => 1,
),
2 => array(
'nid' => 51,
'cid' => '2',
'pid' => '1',
'form_key' => 'civicrm_1_contact_1_contact_existing',
'name' => 'Existing Contact',
'type' => 'civicrm_contact',
'value' => '',
'extra' => array(
'search_prompt' => '- Choose existing -',
'allow_create' => 1,
'none_prompt' => '+ Create new +',
'widget' => 'hidden',
'default' => 'user',
'private' => 0,
'results_display' => array(
'display_name',
),
'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(),
'default_contact_id' => '',
'default_relationship' => '',
'allow_url_autofill' => TRUE,
'dupes_allowed' => FALSE,
'filters' => array(
'contact_sub_type' => 0,
'group' => array(),
'tag' => array(),
'check_permissions' => 1,
),
),
'required' => '0',
'weight' => '2',
'page_num' => 1,
),
7 => array(
'nid' => 51,
'cid' => '7',
'pid' => '1',
'form_key' => 'civicrm_1_contact_1_contact_organization_name',
'name' => 'Organization Name',
'type' => 'textfield',
'value' => '',
'extra' => array(
'width' => 20,
'private' => 0,
'maxlength' => '',
'minlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'disabled' => 0,
'unique' => 0,
'title_display' => 0,
'description' => '',
'description_above' => FALSE,
'placeholder' => '',
'attributes' => array(),
'analysis' => FALSE,
),
'required' => '0',
'weight' => '3',
'page_num' => 1,
),
5 => array(
'nid' => 51,
'cid' => '5',
'pid' => '0',
'form_key' => 'civicrm_1_case_1_fieldset_fieldset',
'name' => 'Case',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
'description_above' => FALSE,
'private' => FALSE,
),
'required' => '0',
'weight' => '221',
'page_num' => 1,
),
8 => array(
'nid' => 51,
'cid' => '8',
'pid' => '5',
'form_key' => 'civicrm_1_case_1_case_subject',
'name' => 'Case Subject',
'type' => 'textfield',
'value' => '',
'extra' => array(
'width' => 20,
'private' => 0,
'maxlength' => '',
'minlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'disabled' => 0,
'unique' => 0,
'title_display' => 0,
'description' => '',
'description_above' => FALSE,
'placeholder' => '',
'attributes' => array(),
'analysis' => FALSE,
),
'required' => '0',
'weight' => '104',
'page_num' => 1,
),
9 => array(
'nid' => 51,
'cid' => '9',
'pid' => '5',
'form_key' => 'civicrm_1_case_1_case_start_date',
'name' => 'Case Start Date',
'type' => 'date',
'value' => 'now',
'extra' => array(
'private' => 0,
'timezone' => 'user',
'exclude' => array(),
'start_date' => '-2 years',
'end_date' => '+2 years',
'year_textfield' => 0,
'datepicker' => 1,
'title_display' => 0,
'description' => '',
'description_above' => FALSE,
'analysis' => FALSE,
),
'required' => '0',
'weight' => '105',
'page_num' => 1,
),
6 => array(
'nid' => 51,
'cid' => '6',
'pid' => '5',
'form_key' => 'civicrm_1_case_1_case_case_type_id',
'name' => 'Case Type',
'type' => 'select',
'value' => '',
'extra' => array(
'items' => "17|Individual Issue\n18|Collective Issue\n19|Enterprise Agreement",
'aslist' => 1,
'private' => 0,
'multiple' => NULL,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'title_display' => 0,
'description' => '',
'description_above' => FALSE,
'custom_keys' => FALSE,
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '110',
'page_num' => 1,
),
),
'conditionals' => array(),
),
'cid' => '0',
'last_comment_timestamp' => '1540763521',
'last_comment_name' => NULL,
'last_comment_uid' => '2',
'comment_count' => '0',
'name' => 'peter.davis',
'picture' => '0',
'data' => 'b:0;',
'webform_civicrm' => array(
'nid' => '51',
'data' => array(
'contact' => array(
1 => array(
'contact' => array(
1 => array(
'contact_type' => 'organization',
'contact_sub_type' => array(),
'webform_label' => 'Contact 1',
),
),
'matching_rule' => 'Unsupervised',
'number_of_cg54' => '0',
'number_of_other' => '0',
'number_of_address' => '0',
'number_of_phone' => '0',
'number_of_email' => '0',
'number_of_website' => '0',
'number_of_im' => '0',
'dynamic_custom_cg44' => 0,
),
),
'activity' => array(
'number_of_activity' => '0',
),
'case' => array(
'number_of_case' => '1',
1 => array(
'dynamic_custom_cg17' => 0,
'dynamic_custom_cg18' => 0,
'dynamic_custom_cg21' => 0,
'dynamic_custom_cg78' => 0,
'dynamic_custom_cg84' => 0,
'dynamic_custom_cg91' => 0,
'existing_case_status' => array(),
'case' => array(
1 => array(
'client_id' => '1',
'medium_id' => '1',
),
),
),
),
'participant_reg_type' => '0',
'reg_options' => array(
'event_type' => 'any',
'show_past_events' => 'now',
'show_future_events' => '1',
'title_display' => 'title',
'show_remaining' => '0',
'validate' => 1,
'block_form' => 0,
'disable_unregister' => 0,
'allow_url_load' => 0,
),
),
'prefix_known' => '',
'prefix_unknown' => '',
'message' => '',
'confirm_subscription' => '1',
'block_unknown_users' => '0',
'create_fieldsets' => '1',
'new_contact_source' => 'test change case type',
'create_new_relationship' => '0',
),
'print_html_display' => 1,
'print_html_display_comment' => 0,
'print_html_display_urllist' => 1,
'print_pdf_display' => 1,
'print_pdf_display_comment' => 0,
'print_pdf_display_urllist' => 1,
'print_pdf_size' => NULL,
'print_pdf_orientation' => NULL,
'menu' => NULL,
'node_export_drupal_version' => '7',
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment