function opengraph_meta_node_form_submit in Open Graph meta tags 7.2
Submit callback: Make our values saved via the metatag module.
See also
2 string references to 'opengraph_meta_node_form_submit'
- opengraph_meta_form_alter in ./
opengraph_meta.module - Implementation of hook_form_alter.
- opengraph_meta_upload_form_node_form_alter in opengraph_meta_upload/
opengraph_meta_upload.module - Implements hook_form_FORM_ID_alter().
File
- ./
opengraph_meta.module, line 172
Code
function opengraph_meta_node_form_submit($form, &$form_state) {
$lang = metatag_entity_get_language('node', $form['#node']);
$metatag =& $form_state['values']['metatags'][$lang];
$opengraph_meta =& $form_state['values']['opengraph_meta'];
$metatag['og:image']['value'] = $opengraph_meta['image'];
}