Issues with update hook in drupal 6 I have this purchase module defined. And I have implemented the update hook something like this

&lt;?php
  function purchase_update($node) {
    echo 'Updating';
    exit(0);
  }

  function purchase_help($path, $arg) {
    $output = ''; 
    switch ($path) {
      case "admin/help#purchase":
        $output = '&lt;p&gt;'.  t("Update help") .'&lt;/p&gt;';
        break;
    }
    return $output;
  } 


However, whenever I edit a node of type purchase, it doesn't call my update function. Any suggestions what could go wrong?
Did the purchase-module create and implement the entire purchase node type or did you create that in the admin system?

If you created it in the admin-system you can't use those functions. They are for node type modules (a rarer and rarer kind of module use these days).

You probably want hook_nodeapi. It's a common misconception.
http://api.drupal.org/api/drupal/developer%21hooks%21core.php/function/hook_nodeapi/6

function hook_nodeapi(&amp;$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {
    case 'update':
      if($node-&gt;type == 'purchase') {
        echo 'Updating';
        exit(0);
      }
    break;
  }
}