You are here

function rules_condition_content_is_promoted in Rules 6

Condition: Check if the node is promoted to the frontpage

Related topics

File

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

Code

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