I want to do a http-Request after submitting a new node to the database. that should be only on one special content-type.

how can i add php code, which is run after submitting?

dominik

Comments

coltrane’s picture

Look at Form API and the ways in which you add function calls to happen after form submit. Here's the API ref for Drupal 5.x http://api.drupal.org/api/file/developer/topics/forms_api_reference.html/5. Hope that helps!

freakx0’s picture

thank you.

but that is only usable within a new module?
$form['#after_build'] = array('system_check_directory'); //

coltrane’s picture

Yes, you could do a form alter in a new module

joachim’s picture

Take a look at the workflow-ng module. Despite the name, it's a sort of action/trigger system which is pretty powerful and might let you do what you want.

freakx0’s picture

workflow-ng is not available for drupal 6. any other solutions?

i've build a content type with cck. an for that i want to start a action after saving.