Commit c503a167 authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge remote-tracking branch 'origin/kp-rt470845' into 7.x-2.x

parents cef2c94e ea26e195
......@@ -97,13 +97,6 @@ function uw_ct_event_form_alter(&$form, &$form_state, $form_id) {
}
}
}
// Setting the default images for metatag twitter cards and open-graph.
// The node:field_image is an image within the node body and the
// node:field_event_image is the social media listing page image.
if (module_exists('metatag') && $form_id == 'uw_event_node_form' ) {
$form['metatags'][LANGUAGE_NONE]['open-graph']['og:image']['value']['#default_value'] = '[node:field_event_image],[node:field_image]';
$form['metatags'][LANGUAGE_NONE]['twitter-cards']['twitter:image:src']['value']['#default_value'] = '[node:field_event_image],[node:field_image]';
}
}
/**
......
Supports Markdown
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