请帮忙,我找不到解决方案。有规则条件
function blockcontent_rules_condition_MYCONDITION($node) {
$n = 2;
$max = strtotime("+$n day", $node->created);
if (time()>$max){
drupal_set_message("somerror");
return TRUE;
}
else {
return FALSE; }
}
这是工作,但drupal更新节点。如果条件为true并显示错误消息,我如何拒绝更新节点?
我会基于"保存内容之前"事件创建一个规则。