function _webform_components_decode in Webform 5
5 calls to _webform_components_decode()
- webform_prepare in ./
webform.module - Implementation of hook_prepare(). This function is called before the display of webform_form(). Rather than a typical usage of hook_prepare, in webform it is used to update the contents of the $node object after changes have been made to the node,…
- webform_submission_edit in ./
webform.module - Editable display of a webform submission.
- webform_submission_view in ./
webform.module - View-only presentation of the webform filled with a particular submission.
- webform_submit in ./
webform.module - Implementation of hook_submit().
- webform_validate in ./
webform.module - Implementation of hook_validate(). This function is called after the user clicks any button displayed in webform_form(). Rather than a typical usage of validation, in webform this is used to perform various actions without kicking the user out of the…
File
- ./
webform.module, line 1869
Code
function _webform_components_decode($components) {
if (is_array($components)) {
foreach ($components as $cid => $value) {
if (is_string($value)) {
$components[$cid] = unserialize(base64_decode($value));
}
}
}
else {
$components = array();
}
return $components;
}