I want to disallow a node from publishing if there is another node already published with the same title. But I don’t know how to prevent a node from publishing. Any suggestions?
function example_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'validate':
// Indicate that it doesn't validate?
break;
}
}
It should be something like this