function easy_social_entity_view in Easy Social 8.3
Same name and namespace in other branches
- 8.4 easy_social.module \easy_social_entity_view()
Implements hook_entity_view().
File
- ./
easy_social.module, line 458 - Easy Social module.
Code
function easy_social_entity_view($entity, $type, $view_mode, $langcode) {
$supported_entity_types = easy_social_get_supported_entities();
if (in_array($type, $supported_entity_types)) {
$entity->content['easy_social'] = array(
// @TODO pass in some kind of context?
'#theme' => 'easy_social',
);
}
}