Fix for FAPI screw-up

  1.   if (arg(0) == 'node' && is_numeric(arg(1))) {
  2.     $node = node_load(arg(1));
  3.  
  4.     if ($node->field_event_registration[0]['nid']) {
  5.  
  6.       if ($form_id == 'webform_client_form_'.$node->field_event_registration[0]['nid']) {
  7.         $form['#submit'][] = 'my_module_webform_submit';
  8.         krumo($form);
  9.       }
  10.      
  11.     }
  12.      
  13.   }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.