diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:27:02 -0400 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:27:02 -0400 |
commit | 0f399a6dbff2e9b1b20af9be0a5bd3f2c76c1e30 (patch) | |
tree | 47d3941febda5d5810583a34ad3c8f94d4a8a1ad /modules/field/field.api.php | |
parent | cba22e6b134a56213a76fa0cac416b22883a65b8 (diff) | |
download | brdo-0f399a6dbff2e9b1b20af9be0a5bd3f2c76c1e30.tar.gz brdo-0f399a6dbff2e9b1b20af9be0a5bd3f2c76c1e30.tar.bz2 |
Issue #1228920 by pp: Fixed hook_field_extra_fields_alter() functions example code is wrong.
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r-- | modules/field/field.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php index 3287dd555..68784d13a 100644 --- a/modules/field/field.api.php +++ b/modules/field/field.api.php @@ -74,8 +74,8 @@ function hook_field_extra_fields() { function hook_field_extra_fields_alter(&$info) { // Force node title to always be at the top of the list by default. foreach (node_type_get_types() as $bundle) { - if (isset($info['node'][$bundle]['title'])) { - $info['node'][$bundle]['title']['weight'] = -20; + if (isset($info['node'][$bundle->type]['title'])) { + $info['node'][$bundle->type]['title']['weight'] = -20; } } } |