You are here

function webform_civicrm_explode_key in Webform CiviCRM Integration 6.2

Same name and namespace in other branches
  1. 7.2 webform_civicrm_utils.inc \webform_civicrm_explode_key()

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

6 calls to webform_civicrm_explode_key()
webform_civicrm_contact_clone in ./webform_civicrm.module
Clone a contact via webform. This submit handler is called when cloning a contact's fieldset
webform_civicrm_field_options in ./webform_civicrm_utils.inc
Get options for a specific field @Param $field: Webform component array @Param $context: Where is this being called from? @Param $data: CiviCRM entity data
webform_civicrm_fill_values in ./webform_civicrm_forms.inc
Recursively walk through form array and set default values for fields based on CiviCRM entity data Called by _webform_civicrm_webform_frontend_form_alter() when webform is being viewed @Param $elements: FAPI array @Param $data: Array of CiviCRM data
webform_civicrm_update_6205 in ./webform_civicrm.install
Upgrade for CiviCRM 4.1 compatibility.
_webform_civicrm_participant_validate in ./webform_civicrm_forms.inc
Validation callback for event registrations.

... See full list

File

./webform_civicrm_utils.inc, line 962
Webform CiviCRM module's common utility functions. The code in this file is cross-compatible with D6/Civi3 and D7/Civi4 Drupal-version-specific functions belong in webform_civicrm_dx_functions.inc

Code

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