[support] Image module and node body field

Pierre Rineau pierre.rineau at makina-corpus.com
Tue Aug 26 15:19:42 UTC 2008


Thanks for you answer, but while you were answering me, I found the
probleme source: I enabled the experimental i18n module 'i18n content
type'.

Disabling this module allowed me to change back my image node type to no
content :)

I'll try to find the source then submit a bug on drupal.org.

On mar, 2008-08-26 at 10:51 -0400, Earnie Boyd wrote:
> Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>:
> 
> > Hi,
> >
> > I'm trying to disable 'body' field for Image nodes, but this happens:
> >
> > o I try to disable it throught content type edition, it alway come back
> >   after I saved it;
> > o Then, I modified directly into database (table node_type) the content
> >   type 'image', disabling it's body field, but when I edit the node, the
> >   field stays here;
> > o So, I looked at the module's code, I saw that its hook_node_info() does
> >   not provide any information about the 'body' field, so if I configure
> >   it to not come back, it should not be here !
> > o I also looked at _node_types_build()method, but can't see why it fails,
> >   and why my 'image' node type (that I get back with node_get_types())
> >   has its 'has_body' attribute to TRUE, it should not be with the database
> >   configured !
> >
> > Any ideas here ? May a module could override the node form don't you think ?
> >
> 
> Changes to the content type after a node has used it requires that you 
> edit/save the node to have the changed content type reflected in the 
> node.  You can programmatically node_load(), node_save() the nodes of 
> the type you wish to change.
> 
> Earnie -- http://for-my-kids.com/
> -- http://give-me-an-offer.com/
> 



More information about the support mailing list