I've got the weirdest glitch. I'm using nodeapi and targetting the story node type. I have insert
case before the presave
case, where presave
is being used instead of update
.
switch ($op){
case 'insert':
//do some stuff
break;
case 'presave':
//do some stuff
break;
}
The weird thing is that when a story node is being created, the presave
block runs. I thought insert
should kick in instead and then it would quit because of the break
, and presave
wouldn't run at all. For some reason presave
is running at node creation.