Contrary to 4.7 version where there was a distinct line between cck-handled content-types and others, 5.0 cck can potentially act upon any content type.

It plugs on hook_nopeapi and hook_form_alter to manage fields and generate forms.
Those hooks are executed for all content types, and

This could probably be optimized for most of the ops (if not all ?) by checking first in content_nodeapi and content_form_alter that the content type has fields, and doing plain nothing if it has none.

This should probably be done after the forthcoming release, though.

CommentFileSizeAuthor
#2 107407.patch2.56 KBdopry
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

Yes, we should think about this to reduce overhead. And yes definitely not until after next release.

dopry’s picture

Version: 5.x-1.x-dev » 7.x-2.x-dev
Status: Active » Needs review
FileSize
2.56 KB

See attached patch.

yched’s picture

+ // why is this here? why does _content_field_invoke_default('delete', $node) not handle the following? -dopry.

True. Fixed in http://drupal.org/node/292665.

KarenS’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev

Moving back to D6 so it doesn't get missed.

KarenS’s picture

Status: Needs review » Fixed

I brought this up to date and committed it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.