Commit 2483cd0d authored by jcnventura's avatar jcnventura

Issue #1490056 by Norberto Ostallo: Allow other modules to modify the view...

Issue #1490056 by Norberto Ostallo: Allow other modules to modify the view implementing hook_entity_view
parent f202490f
......@@ -560,7 +560,8 @@ function _print_generate_node($nid, $cid = NULL, $format = PRINT_HTML_FORMAT, $t
'#language' => $langcode,
);
drupal_alter('node_view', $build);
$type = 'node';
drupal_alter(array('node_view', 'entity_view'), $build, $type);
$content = render($build);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment