You are here

function custom_pub_rules_condition_node_has_option in Custom Publishing Options 7

Return if the node contains the requested option.

Parameters

$node:

$option:

Return value

bool

1 string reference to 'custom_pub_rules_condition_node_has_option'
custom_pub_rules_condition_info in ./custom_pub.rules.inc
Implements hook_rules_condition_info().

File

./custom_pub.rules.inc, line 70
Rules integration for Custom Publishing Options module.

Code

function custom_pub_rules_condition_node_has_option($node, $option) {
  return (bool) $node->{$option};
}