You are here

function og_rules_entity_is_group_content in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.rules.inc \og_rules_entity_is_group_content()

Condition: Entity is group content.

1 string reference to 'og_rules_entity_is_group_content'
og_rules_condition_info in ./og.rules.inc
Implements hook_rules_condition_info().

File

./og.rules.inc, line 499
Rules integration for the Organic groups module.

Code

function og_rules_entity_is_group_content(EntityDrupalWrapper $entity) {
  return (bool) og_is_group_content_type($entity
    ->type(), $entity
    ->getBundle());
}