function ctools_entity_field_value_ctools_access_get_children
1 string reference to 'ctools_entity_field_value_ctools_access_get_children'
- entity_field_value.inc in plugins/
access/ entity_field_value.inc
File
-
plugins/
access/ entity_field_value.inc, line 30
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;
}