You are here

function rules_condition_content_is_premium in Node Option Premium 6

Condition: Check if the node is premium content.

File

./nopremium.rules.inc, line 33
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

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