? breaky.kpf
? fapi_errors.patch
? sites/breaky
? sites/default/settings.php
Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.548
diff -u -p -r1.548 comment.module
--- modules/comment/comment.module	4 Jun 2007 07:22:17 -0000	1.548
+++ modules/comment/comment.module	4 Jun 2007 15:36:29 -0000
@@ -1116,7 +1116,7 @@ function comment_delete($cid = NULL) {
   return $output;
 }
 
-function comment_confirm_delete($comment) {
+function comment_confirm_delete(&$form_state, $comment) {
   $form = array();
   $form['#comment'] = $comment;
   return confirm_form(
@@ -1295,8 +1295,8 @@ function theme_comment_admin_overview($f
  * List the selected comments and verify that the admin really wants to delete
  * them.
  */
-function comment_multiple_delete_confirm() {
-  $edit = $_POST;
+function comment_multiple_delete_confirm(&$form_state) {
+  $edit = $form_state['post'];
 
   $form['comments'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
   // array_filter() returns only elements with actual values
@@ -1627,9 +1627,9 @@ function comment_form_box($edit, $title 
   return theme('box', $title, drupal_get_form('comment_form', $edit, $title));
 }
 
-function comment_form_add_preview($form, $edit, &$form_state) {
+function comment_form_add_preview($form, &$form_state) {
   global $user;
-
+  $edit = $form_state['values'];
   drupal_set_title(t('Preview comment'));
 
   $output = '';
@@ -1640,7 +1640,8 @@ function comment_form_add_preview($form,
   // set any errors.
   drupal_validate_form($form['form_id']['#value'], $form, $form_state);
   if (!form_get_errors()) {
-    $comment = (object)_comment_form_submit($edit);
+    _comment_form_submit($edit);
+    $comment = (object)$edit;
 
     // Attach the user and time information.
     if ($edit['author']) {
Index: modules/contact/contact.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/contact/contact.module,v
retrieving revision 1.87
diff -u -p -r1.87 contact.module
--- modules/contact/contact.module	4 Jun 2007 07:22:17 -0000	1.87
+++ modules/contact/contact.module	4 Jun 2007 15:36:29 -0000
@@ -259,7 +259,7 @@ function contact_admin_edit_submit($form
 /**
  * Category delete page.
  */
-function contact_admin_delete($cid = NULL) {
+function contact_admin_delete(&$form_state, $cid = NULL) {
   if ($info = db_fetch_object(db_query("SELECT category FROM {contact} WHERE cid = %d", $cid))) {
     $form['category'] = array('#type' => 'value',
       '#value' => $info->category,
@@ -556,4 +556,3 @@ function contact_mail_page_submit($form,
   $form_state['redirect'] = '';
   return;
 }
-
Index: modules/forum/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v
retrieving revision 1.401
diff -u -p -r1.401 forum.module
--- modules/forum/forum.module	4 Jun 2007 07:22:17 -0000	1.401
+++ modules/forum/forum.module	4 Jun 2007 15:36:29 -0000
@@ -604,7 +604,7 @@ function forum_form_submit($form, &$form
  *
  * @param $tid ID of the term to be deleted
  */
-function forum_confirm_delete($tid) {
+function forum_confirm_delete(&$form_state, $tid) {
   $term = taxonomy_get_term($tid);
 
   $form['tid'] = array('#type' => 'value', '#value' => $tid);
Index: modules/menu/menu.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/menu/menu.module,v
retrieving revision 1.113
diff -u -p -r1.113 menu.module
--- modules/menu/menu.module	4 Jun 2007 07:22:19 -0000	1.113
+++ modules/menu/menu.module	4 Jun 2007 15:36:29 -0000
@@ -488,7 +488,7 @@ function menu_item_delete_form_submit($f
 /**
  * Menu callback; reset a single modified item.
  */
-function menu_reset_item($mid) {
+function menu_reset_item(&$form_state, $mid) {
   if (isset($mid) && $item = db_fetch_object(db_query('SELECT path, title FROM {menu} WHERE mid = %d', $mid))) {
     $form['mid'] = array('#type' => 'value', '#value' => $item->path);
     return confirm_form($form, t('Are you sure you want to reset the item %item to its default values?', array('%item' => $item->title)), 'admin/build/menu', t('Any customizations will be lost. This action cannot be undone.'), t('Reset'));
Index: modules/node/content_types.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/content_types.inc,v
retrieving revision 1.34
diff -u -p -r1.34 content_types.inc
--- modules/node/content_types.inc	4 Jun 2007 07:22:20 -0000	1.34
+++ modules/node/content_types.inc	4 Jun 2007 15:36:29 -0000
@@ -378,7 +378,7 @@ function node_type_reset(&$type) {
 /**
  * Menu callback; delete a single content type.
  */
-function node_type_delete_confirm($type) {
+function node_type_delete_confirm(&$form_state, $type) {
   $form['type'] = array('#type' => 'value', '#value' => $type->type);
   $form['name'] = array('#type' => 'value', '#value' => $type->name);
 
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.825
diff -u -p -r1.825 node.module
--- modules/node/node.module	4 Jun 2007 07:46:33 -0000	1.825
+++ modules/node/node.module	4 Jun 2007 15:36:30 -0000
@@ -1673,8 +1673,8 @@ function theme_node_admin_nodes($form) {
   return $output;
 }
 
-function node_multiple_delete_confirm() {
-  $edit = $_POST;
+function node_multiple_delete_confirm(&$form_state) {
+  $edit = $form_state['post'];
 
   $form['nodes'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
   // array_filter returns only elements with TRUE values
@@ -2359,7 +2359,7 @@ function node_form_submit($form, &$form_
 /**
  * Menu callback -- ask for confirmation of node deletion
  */
-function node_delete_confirm($node) {
+function node_delete_confirm(&$form_state, $node) {
  $form['nid'] = array('#type' => 'value', '#value' => $node->nid);
 
  return confirm_form($form,
Index: modules/profile/profile.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v
retrieving revision 1.203
diff -u -p -r1.203 profile.module
--- modules/profile/profile.module	4 Jun 2007 07:22:21 -0000	1.203
+++ modules/profile/profile.module	4 Jun 2007 15:36:30 -0000
@@ -389,7 +389,7 @@ function profile_field_form_submit($form
 /**
  * Menu callback; deletes a field from all user profiles.
  */
-function profile_field_delete($fid) {
+function profile_field_delete(&$form_state, $fid) {
   $field = db_fetch_object(db_query("SELECT title FROM {profile_fields} WHERE fid = %d", $fid));
   if (!$field) {
     drupal_not_found();
Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.357
diff -u -p -r1.357 taxonomy.module
--- modules/taxonomy/taxonomy.module	4 Jun 2007 07:22:22 -0000	1.357
+++ modules/taxonomy/taxonomy.module	4 Jun 2007 15:36:30 -0000
@@ -223,7 +223,7 @@ function taxonomy_overview_terms($vocabu
 /**
  * Display form for adding and editing vocabularies.
  */
-function taxonomy_form_vocabulary($edit = array()) {
+function taxonomy_form_vocabulary(&$form_state, $edit = array()) {
   $edit += array(
     'name' => '',
     'description' => '',
@@ -378,7 +378,7 @@ function taxonomy_del_vocabulary($vid) {
   return SAVED_DELETED;
 }
 
-function taxonomy_vocabulary_confirm_delete($vid) {
+function taxonomy_vocabulary_confirm_delete(&$form_state, $vid) {
   $vocabulary = taxonomy_vocabulary_load($vid);
 
   $form['type'] = array('#type' => 'value', '#value' => 'vocabulary');
@@ -401,7 +401,7 @@ function taxonomy_vocabulary_confirm_del
   return;
 }
 
-function taxonomy_form_term($vocabulary, $edit = array()) {
+function taxonomy_form_term(&$form_state, $vocabulary, $edit = array()) {
   $edit += array(
     'name' => '',
     'description' => '',
@@ -614,7 +614,7 @@ function taxonomy_del_term($tid) {
   return SAVED_DELETED;
 }
 
-function taxonomy_term_confirm_delete($tid) {
+function taxonomy_term_confirm_delete(&$form_state, $tid) {
   $term = taxonomy_get_term($tid);
 
   $form['type'] = array('#type' => 'value', '#value' => 'term');
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.791
diff -u -p -r1.791 user.module
--- modules/user/user.module	4 Jun 2007 07:24:53 -0000	1.791
+++ modules/user/user.module	4 Jun 2007 15:36:31 -0000
@@ -1021,7 +1021,7 @@ function user_auth_help_links() {
 
 
 
-function user_login($msg = '') {
+function user_login(&$form_state, $msg = '') {
   global $user;
 
   // If we are already logged on, go to the user page instead.
@@ -2408,8 +2408,8 @@ function user_multiple_role_edit($accoun
   }
 }
 
-function user_multiple_delete_confirm() {
-  $edit = $_POST;
+function user_multiple_delete_confirm(&$form_state) {
+  $edit = $form_state['post'];
 
   $form['accounts'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
   // array_filter returns only elements with TRUE values
