Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 107407.patch | 2.56 KB | dopry |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedYes, we should think about this to reduce overhead. And yes definitely not until after next release.
Comment #2
dopry CreditAttribution: dopry commentedSee attached patch.
Comment #3
yched CreditAttribution: yched commented+ // 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.
Comment #4
KarenS CreditAttribution: KarenS commentedMoving back to D6 so it doesn't get missed.
Comment #5
KarenS CreditAttribution: KarenS commentedI brought this up to date and committed it.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.