You are here

function og_get_fieldable_entity_list in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.module \og_get_fieldable_entity_list()

Return a list of fieldable entities.

Return value

Array keyed with the entity machine name and the saniztized human name as the value.

1 string reference to 'og_get_fieldable_entity_list'
og_rules_action_info in ./og.rules.inc
Implements hook_rules_action_info().

File

./og.module, line 3427
Enable users to create and manage groups with roles and permissions.

Code

function og_get_fieldable_entity_list() {
  $return = array();
  foreach (entity_get_info() as $name => $info) {
    if (!empty($info['fieldable'])) {
      $return[$name] = check_plain($info['label']);
    }
  }
  return $return;
}