function og_get_all_group_entity

cis7 og.module og_get_all_group_entity()
cle7 og.module og_get_all_group_entity()
elmsmedia7 og.module og_get_all_group_entity()
icor7 og.module og_get_all_group_entity()
meedjum_blog7 og.module og_get_all_group_entity()
mooc7 og.module og_get_all_group_entity()

Return all entity types that have bundles that are a group type.

Return value

Array keyed with the entity type machine name and the entity human readable name as the value, or an empty array if no entities are defined as group.

12 calls to og_get_all_group_entity()
og_context_entity_property_info in sites/all/modules/ulmus/og/og_context/og_context.module
Implements hook_entity_property_info().
og_context_plugin_access_og_perm::options_form in sites/all/modules/ulmus/og/og_context/includes/views/handlers/og_context_plugin_access_og_perm.inc
Provide the default form for setting options.
og_context_plugin_argument_default_group_context::options_form in sites/all/modules/ulmus/og/og_context/includes/views/handlers/og_context_plugin_argument_default_group_context.inc
Provide the default form for setting options.
og_plugin_argument_default_user_groups::options_form in sites/all/modules/ulmus/og/includes/views/handlers/og_plugin_argument_default_user_groups.inc
Provide the default form for setting options.
og_plugin_argument_default_user_groups::option_definition in sites/all/modules/ulmus/og/includes/views/handlers/og_plugin_argument_default_user_groups.inc
List the options relevant for this plugin.

... See full list

1 string reference to 'og_get_all_group_entity'

File

sites/all/modules/ulmus/og/og.module, line 2426
Enable users to create and manage groups with roles and permissions.

Code

function og_get_all_group_entity() {
  $return = array();

  foreach (entity_get_info() as $entity_type => $entity_value) {
    foreach ($entity_value['bundles'] as $bundle => $bundle_value) {
      if (og_is_group_type($entity_type, $bundle)) {
        $return[$entity_type] = check_plain($entity_value['label']);
        // At least one bundle of the entity can be a group, so break.
        break;
      }
    }
  }
  return $return;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.