Posted by dman on April 22, 2009 at 3:04am
| Project: | Nodetype |
| Version: | 6.x-1.0 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
As in http://drupal.org/node/441142
If you use CCK to 'manage fields' and drag the 'body' around anywhere (or make any change at all AFAIK) there's a good chance that the form 'weights' set when form_alter added its field will become totally nonsensical.
the node type switcher bubbled to the top of my form. above even the title. Not much fun.
The fix is eventually to make the contrib field show up on the node type field management screen like so:
<?php
/**
* Implementation of hook_content_extra_fields.
*
* Information for the positioning of non-CCK contrib fields
* @see content_extra_field_weight()
*
* CCK scrambles the node edit form when the 'body' is repositioned. Allow the
* CCK UI to fix that and place the widget where you want.
*/
function nodetype_content_extra_fields($type_name) {
$extra = array();
if (! user_access('change node types')) {
return;
}
$extra['nodetype'] = array(
'label' => t('Node Type'),
'description' => t('Node Type Switcher'),
'weight' => 10,
);
return $extra;
}
?>No patch - just paste it into the bottom of nodetype.module if you want.
Comments
#1
And here the patch