You are here

function rules_condition_content_is_new in Rules 6

Condition: Check if the node is new

Related topics

File

rules/modules/node.rules.inc, line 165
rules integration for the node module

Code

function rules_condition_content_is_new($node, $settings = array()) {
  return empty($node->nid) || !empty($node->is_new);
}