function easy_social_field_extra_fields in Easy Social 8.4
Same name and namespace in other branches
- 8.3 easy_social.module \easy_social_field_extra_fields()
- 7.2 easy_social.module \easy_social_field_extra_fields()
- 7 easy_social.module \easy_social_field_extra_fields()
Implements hook_field_extra_fields().
File
- ./
easy_social.module, line 435 - Easy Social module.
Code
function easy_social_field_extra_fields() {
$return = array();
$supported_entity_types = easy_social_get_supported_entities();
$entity_info = Drupal::entityManager()
->getDefinitions();
// foreach ($supported_entity_types as $entity_type) {
// if (array_key_exists($entity_type, $entity_info)) {
// foreach ($entity_info[$entity_type]['bundles'] as $bundle) {
// $return[$entity_type][$bundle]['display']['easy_social'] = array(
// 'label' => t('Easy Social widgets'),
// 'weight' => 0,
// );
// }
// }
// }
return $return;
}