Issue #1228920 by pp: Fixed hook_field_extra_fields_alter() functions example code is wrong.

merge-requests/26/head
webchick 2011-07-28 15:27:02 -04:00
parent cba22e6b13
commit 0f399a6dbf
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}