Skip to content
Snippets Groups Projects
Commit 2715fcf2 authored by xandeadx's avatar xandeadx Committed by Joachim Noreiko
Browse files

Issue #1999604 by xandeadx: Fixed display field weight not applied to flag pseudofield.

parent fc8cc6b5
No related branches found
No related tags found
No related merge requests found
......@@ -911,7 +911,7 @@ function flag_entity_view($entity, $type, $view_mode, $langcode) {
// The pseudofield output.
if ($flag->show_as_field) {
$entity->content['flag-' . $flag->name] = array(
$entity->content['flag_' . $flag->name] = array(
'#markup' => $flag->theme($flag->is_flagged($entity_id) ? 'unflag' : 'flag', $entity_id, array('needs_wrapping_element' => TRUE)),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment