function wf_crm_explode_key in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 7.5 includes/utils.inc \wf_crm_explode_key()
- 7.3 webform_civicrm_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
14 calls to wf_crm_explode_key()
- isCustomGroupFieldset in includes/
wf_crm_admin_component.inc - 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
- webform_civicrm_webform_autocomplete_options_alter in ./
webform_civicrm.module - Implements hook_webform_autocomplete_options()
- wf_crm_admin_component::alterForm in includes/
wf_crm_admin_component.inc - Alter back-end webform component edit forms. Called by hook_form_alter() whenever editing a webform component.
File
- includes/
utils.inc, line 1508 - 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;
}