How I change node edit form, which created by CCK module?

Now if the form is submitted, CCK update some field in mysql database. I need to change this, because in one form input contains three values, and this values need to be recorded in three fields in databse. How can I do this?

Jimmy Ko said, that I can retrieve the submitted value in $form_state['#values'], but I don’t know in what .php file I can do this?

  • You should keep in mind that Drupal 6 is no longer supported by the community, and all Drupal 6 sites should plan to upgrade to Drupal 7 or 8 soon.
    – acrosman
    Commented Jun 7, 2016 at 13:27
  • I know it, but site does not have the ability to update to Drupal 7 or newest version
    – Sergey
    Commented Jun 7, 2016 at 13:37

1 Answer 1


For achieving this goal you have to implement hook_nodeapi

In presave operation you can get desired value.

Example code you can get from the D6 release of the Examples for Developers module.

  • Thanks. Can you give exaple of this hook?
    – Sergey
    Commented Jun 7, 2016 at 12:13
  • And at that php file i need implement this hook?
    – Sergey
    Commented Jun 7, 2016 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.