? .webform_associate.module.swp
? webform_associate_style.patch
Index: webform_associate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform_associate/Attic/webform_associate.module,v
retrieving revision 1.1
diff -u -p -r1.1 webform_associate.module
--- webform_associate.module	23 Sep 2008 16:18:48 -0000	1.1
+++ webform_associate.module	24 Sep 2008 23:57:58 -0000
@@ -24,7 +24,7 @@ function webform_associate_menu_alter(&$
       $callback = $items[$new_key]['access callback'];
       $items[$new_key]['access callback'] = 'webform_associate_menu_access';
       $arguments = $items[$new_key]['access arguments'];
-      switch($callback) {
+      switch ($callback) {
         case 'node_access':
         $items[$new_key]['access arguments'] = array($callback, $arguments, 1);
         break;
@@ -145,7 +145,7 @@ function webform_associate_redirect($for
 }
 
 function webform_associate_form_alter(&$form, $form_state, $form_id) {
-  switch($form_id) {
+  switch ($form_id) {
     case 'webform_client_form_'. arg(1):
       $form['#action'] = '/node/'. $form['submission']['#value']->nid .'/submission/'. $form['submission']['#value']->sid .'/edit';
     break;
@@ -197,24 +197,24 @@ function webform_associate_nodeapi(&$nod
         $node->nid = $ids->nid;
       break;
       case 'insert':
-        $wnode = new stdClass();
-        $wnode->type = 'webform';
-        $wnode->title = $node->title .' Webform';
-        $wnode->body = $node->body;
-        $wnode->uid = $node->uid;
-        $wnode->webform=array( //defaults
-          'teaser' => 0,
-          'submit_text' => '',
-          'submit_limit' => -1,
-          'submit_interval' => -1,
-          'email' => $node->email,
-          'email_from_name' => 'default',
-          'email_from_address' => 'default',
-          'email_subject' => 'default',
+        $wnode          = new stdClass();
+        $wnode->type    = 'webform';
+        $wnode->title   = $node->title .' Webform';
+        $wnode->body    = $node->body;
+        $wnode->uid     = $node->uid;
+        $wnode->webform = array(//defaults
+          'teaser'              => 0,
+          'submit_text'         => '',
+          'submit_limit'        => -1,
+          'submit_interval'     => -1,
+          'email'               => $node->email,
+          'email_from_name'     => 'default',
+          'email_from_address'  => 'default',
+          'email_subject'       => 'default',
           'additional_validate' => '',
-          'additional_submit' => '',
-          'roles' => array(1, 2),
-        );
+          'additional_submit'   => '',
+          'roles'               => array(1, 2),
+          );
         node_save($wnode);
         webform_associate_save($node->nid, $wnode->nid);
         webform_associate_components($node->nid);
