Index: cck/modules/fieldgroup/fieldgroup.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cck/modules/fieldgroup/fieldgroup.install,v retrieving revision 1.34 diff -u -p -r1.34 fieldgroup.install --- cck/modules/fieldgroup/fieldgroup.install 3 Jun 2008 14:41:08 -0000 1.34 +++ cck/modules/fieldgroup/fieldgroup.install 7 Aug 2008 14:46:32 -0000 @@ -11,7 +11,7 @@ include_once('./'. drupal_get_path('modu function fieldgroup_install() { drupal_install_schema('fieldgroup'); content_notify('install', 'fieldgroup'); - variable_set('fieldgroup_schema_version', 6000); + db_query("UPDATE {system} SET weight = 9 WHERE name = 'fieldgroup'"); } @@ -179,4 +179,14 @@ function fieldgroup_update_4() { function fieldgroup_update_6000() { $ret = array(); return $ret; -} \ No newline at end of file +} + +/* + * Increases module weight, so that other modules can form_alter() cck forms before the fields + * are moved in groups + */ +function fieldgroup_update_6001() { + $ret = array(); + $ret[] = update_sql("UPDATE {system} SET weight = 9 WHERE name = 'fieldgroup'"); + return $ret; +}