You are here

function rules_condition_content_is_published in Rules 6

Same name and namespace in other branches
  1. 7.2 tests/rules_test.test.inc \rules_condition_content_is_published()

Condition: Check if the node is published

Related topics

1 string reference to 'rules_condition_content_is_published'
_rules_admin_install_example_rules in rules_admin/rules_admin.install

File

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

Code

function rules_condition_content_is_published(&$node, $settings) {
  return $node->status == 1;
}