Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function _webform_component_mapping($node) {
- $mapping = array();
- $components = $node->webform['components'];
- foreach ($components as $i => $component) {
- $key = $component['form_key'];
- $mapping[$key] = $i;
- }
- return $mapping;
- }
- $mapping = _webform_component_mapping($node);
- $submission->data[$mapping['newsletter_signup']][0]) == 'YES';
Advertisement
Add Comment
Please, Sign In to add comment