- #649106 by thekevinday: Fix content_copy_form_alter(), where $form_state argument...
authorMarc Ferran (aka Markus)
Fri, 4 Dec 2009 18:23:30 +0000 (18:23 +0000)
committerMarc Ferran (aka Markus)
Fri, 4 Dec 2009 18:23:30 +0000 (18:23 +0000)
CHANGELOG.txt
modules/content_copy/content_copy.module

index 6a302a8..ba15bc9 100644 (file)
@@ -5,6 +5,7 @@ CCK 6.x-2.x
 
 Bugfixes:
 - #625768 CCK 6.x-2.6, got fatal error on update.php while running userreference_update_6002().
+- #649106 by thekevinday: Fix content_copy_form_alter(), where $form_state argument is not passed by reference.
 
 
 CCK 6.x-2.6
index fecfb6a..d015470 100644 (file)
@@ -500,7 +500,7 @@ function content_copy_import_form_submit($form, &$form_state) {
  * Implementation of hook_form_alter().
  * Intervene to run form through macro when doing export
  */
-function content_copy_form_alter(&$form, &$form_state, $form_id) {
+function content_copy_form_alter(&$form, $form_state, $form_id) {
   $alter_forms = array('node_type_form', 'content_field_edit_form', 'fieldgroup_group_edit_form');
   if (isset($GLOBALS['content_copy']) && isset($GLOBALS['content_copy']['status']) && $GLOBALS['content_copy']['status'] == 'export' && in_array($form_id, $alter_forms)) {
     $form['#submit'][] = 'content_copy_record_macro';