diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-11-11 20:53:42 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-11-11 20:53:42 -0800 |
commit | 364a36e8ab28e8f7b5e84c9e35f1ef6b513b9127 (patch) | |
tree | e9694b4d1936d251cb4c033a749582f5e0d31bf4 | |
parent | a9aeff1fce657e3274fa34a026b0bf2c06a9f456 (diff) | |
download | brdo-364a36e8ab28e8f7b5e84c9e35f1ef6b513b9127.tar.gz brdo-364a36e8ab28e8f7b5e84c9e35f1ef6b513b9127.tar.bz2 |
Issue #1333346 by claudiu.cristea: Fixed hook_field_extra_fields_alter() example code.
-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 74eae62ab..d0d5da9c6 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->type]['title'])) { - $info['node'][$bundle->type]['title']['weight'] = -20; + if (isset($info['node'][$bundle->type]['form']['title'])) { + $info['node'][$bundle->type]['form']['title']['weight'] = -20; } } } |