function node_gallery_api_rules_condition_is_gallery_type in Node Gallery 7
Rules condition for checking if a node is a gallery type.
Parameters
object $gallery_wrapper: the node to check
Return value
bool is gallery type
1 string reference to 'node_gallery_api_rules_condition_is_gallery_type'
File
- ./
node_gallery_api.rules.inc, line 339 - Rules module integration.
Code
function node_gallery_api_rules_condition_is_gallery_type($gallery_wrapper) {
return in_array($gallery_wrapper->type
->value(), node_gallery_api_get_types('gallery'));
}