Skip to content

Commit 4730923

Browse files
Change view mode to entity_embed
1 parent ffe382b commit 4730923

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entity_embed.module

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function entity_embed_filter_process_token($token) {
5555

5656
// View mode defaults to 'full'.
5757
if (!isset($params['view_mode']) || empty($params['view_mode'])) {
58-
$params['view_mode'] = 'full';
58+
$params['view_mode'] = 'entity_embed';
5959
}
6060

6161
// Load entity object.
@@ -68,7 +68,6 @@ function entity_embed_filter_process_token($token) {
6868

6969
// Load entity view.
7070
$view = entity_view($params['entity_type'], $entities, $params['view_mode']);
71-
7271
return drupal_render($view);
7372
}
7473

0 commit comments

Comments
 (0)