summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/content_copy/content_copy.module2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 6a302a8..ba15bc9 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -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
diff --git a/modules/content_copy/content_copy.module b/modules/content_copy/content_copy.module
index fecfb6a..d015470 100644
--- a/modules/content_copy/content_copy.module
+++ b/modules/content_copy/content_copy.module
@@ -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';