post-save case in node api? Is there such thing as a post-save type of case in the node_api function or any other type of function? This question is in reference to a question I posted What operation should I use to write node&#39;s information in an email when the node is saved?

I want to be able to have something happen after pressing the save button, but AFTER the saving into the database has been completed. I have tried 'update' and 'insert' and they don't seem to work.

EDIT: heres my code

case 'presave':
    {
        if(($node-&gt;type == 'team_practice_info') | ($node-&gt;type == 'schedule'))
        {

            if(!empty($node-&gt;field_alert[0]['value']))
            {
                if($node-&gt;field_alert[0]['value'] == 'on')
                {                       
                    //email out to everyone an email about the content change/update
                    $query = db_query("SELECT * 
                                       FROM {content_type_athletics_alert}
                                       JOIN {content_field_team}
                                       ON content_type_athletics_alert.nid = content_field_team.nid
                                       WHERE content_field_team.field_team_nid = 
                                            (SELECT field_team_nid
                                             FROM {node}
                                             JOIN {content_field_team}
                                             ON node.nid = content_field_team.nid
                                             WHERE node.nid = %d)", $node-&gt;nid);
                    $rows = array();
                    //db_fetch returns an array of the next row in the query
                    while ($row = db_fetch_array($query))
                    {                       
                        //pull out the email from the array, then send an email to each subscriber                          
                        $email = $row['field_email_address_value'];
                        $first_name = $row['field_first_name_value'];
                        $last_name = $row['field_last_name_value'];
                        $t_id = $row['field_team_nid'];
                        $t=node_load($t_id);
                        $sport = (current($t-&gt;taxonomy));
                        $team = $t-&gt;title.' '.$sport-&gt;name;

                        alert_message_mail_send($email, $first_name, $last_name, $team, $node);
                    }
                    //reset the alert checkbox to off
                    $node-&gt;field_alert[0]['value'] = 'off';
                }                   
            }
        }
    }

   break;
If you are having trouble with hook_nodeapi (though I have never had problems with it), you could try using Rules.

There is a stock event After saving new content that you can try.  There is also a stock DO action, Send a mail to a user.  You then get the normalish token-based email form that you can configure.

We have used this on few projects with good luck.