You are here

function og_rules_get_group_content_info_alter in Organic groups 7

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

"Fetch group content" action info alter callback.

File

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

Code

function og_rules_get_group_content_info_alter(&$element_info, $element) {
  if (isset($element->settings['entity_type']) && ($entity_type = $element->settings['entity_type'])) {
    $element_info['provides']['group_content']['type'] = "list<{$entity_type}>";
  }
}