function rules_data_type_comment::get_identifier in Rules 6
Gets the identifier of this data, which can be of every php data type - even an array. Implement it, if your data type is identifiable.
Overrides rules_data_type::get_identifier
File
- rules/
modules/ comment.rules.inc, line 164 - rules integration for the comment module
Class
- rules_data_type_comment
- Defines the comment data type
Code
function get_identifier() {
$comment = $this
->get();
return $comment->cid;
}