function content_rules_field_changed in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6.2 includes/content.rules.inc \content_rules_field_changed()
Condition: Check if the field has changed.
File
- includes/
content.rules.inc, line 264 - Provides basic rules module support.
Code
function content_rules_field_changed($node1, $node2, $settings) {
// Get information about the field.
$field = content_fields($settings['field_name'], $node1->type);
return !empty($field) && !_content_rules_field_has_value($node1->{$settings}['field_name'], $node2->{$settings}['field_name']);
}