I like the ability of using what's available as modules in drupal, but sometimes custom little tweaks are needed for specific projects and I like to achieve that using small modules rather than tweaking the code on the module.

I find useful a way of letting other modules modify the $node object before populating the form. Specifically, I want to remove the images from the image fields of a CCK node, as I don't want them to be cloned.

I thought of using a custom module hook, but I believe nodeapi can be perfectly used with a custom op. Here is my small proposal, it's just using hook_nodeapi for it.

Comments

hanoii’s picture

Status: Active » Reviewed & tested by the community

Changing the status

pwolanin’s picture

Status: Reviewed & tested by the community » Needs work

Interesting idea - though if nothing else the patch is backward

pwolanin’s picture

Status: Needs work » Fixed
StatusFileSize
new2.42 KB

implemented this in a slightly different way.

This is a backport from HEAD, essentially, where I used drupal_alter().

pwolanin’s picture

StatusFileSize
new2.4 KB

5.x-1.x branch patch

Anonymous’s picture

Status: Fixed » Closed (fixed)

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