You are here

function wf_crm_explode_key in Webform CiviCRM Integration 7.3

Same name and namespace in other branches
  1. 7.5 includes/utils.inc \wf_crm_explode_key()
  2. 7.4 includes/utils.inc \wf_crm_explode_key()

Explodes form key into an array and verifies that it is in the right format

Parameters

$key: Webform component field key (string)

Return value

array or NULL

8 calls to wf_crm_explode_key()
webform_civicrm_update_6205 in ./webform_civicrm.install
Upgrade for CiviCRM 4.1 compatibility.
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
wf_crm_contact_clone in ./webform_civicrm.module
Clone a contact via webform. This submit handler is called when cloning a contact's fieldset
wf_crm_contact_fields in ./contact_component.inc
Find exposed field groups for a contact
wf_crm_field_options in ./webform_civicrm_utils.inc
Get options for a specific field

... See full list

File

./webform_civicrm_utils.inc, line 1204
Webform CiviCRM module's common utility functions.

Code

function wf_crm_explode_key($key) {
  $pieces = explode('_', $key, 6);
  if (count($pieces) != 6 || $pieces[0] !== 'civicrm') {
    return FALSE;
  }
  return $pieces;
}