0
The search result is a node view and hence the hook_node_view_alter works for it. So you would could create a custom module and write the following function function custom_node_view_alter(&$build, $type) { if (($build['#view_mode'] == 'search_result') && ($type = 'node')) {...