function ctools_entity_field_value_ctools_access_get_children

cis7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
cle7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
elmsmedia7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
icor7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
meedjum_blog7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
mooc7 entity_field_value.inc ctools_entity_field_value_ctools_access_get_children($plugin, $parent)
1 string reference to 'ctools_entity_field_value_ctools_access_get_children'
entity_field_value.inc in sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc
Plugin to provide access control based upon entity bundle.

File

sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc, line 30
Plugin to provide access control based upon entity bundle.

Code

function ctools_entity_field_value_ctools_access_get_children($plugin, $parent) {
  $plugins = &drupal_static(__FUNCTION__, array());
  if (!empty($plugins)) {
    return $plugins;
  }
  $entities = entity_get_info();
  foreach ($entities as $entity_type => $entity) {
    foreach ($entity['bundles'] as $bundle_type => $bundle) {
      foreach (field_info_instances($entity_type, $bundle_type) as $field_name => $field) {
        if (!isset($plugins[$parent . ':' . $entity_type . ':' . $bundle_type . ':' . $field_name])) {
          $plugin = _ctools_entity_field_value_ctools_access_get_child($plugin, $parent, $entity_type, $bundle_type, $field_name, $entity, $bundle, $field);
          $plugins[$parent . ':' . $entity_type . ':' . $bundle_type . ':' . $field_name] = $plugin;
        }
      }
    }
  }

  return $plugins;
}
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.