Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($form_id == 'commerce_checkout_form_checkout'){
- $form['employees'] = array(
- '#markup' => '<h1>Hello, this is a checkout test!</h1>',
- '#weight' => -1,
- );
- $webform_nid = 324;
- $webform_node = node_load($webform_nid);
- $webform_components = $webform_node->webform['components'];
- foreach ($webform_components as $key => $component) {
- $form[$component['form_key']] = webform_component_invoke($component['type'], 'render', $component);
- }
- }
Add Comment
Please, Sign In to add comment