metatag_facebook.module 484 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @file
  4. * Primary hook implementations for Metatag:Facebook.
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function metatag_facebook_ctools_plugin_api($owner, $api) {
  10. if ($owner == 'metatag' && $api == 'metatag') {
  11. return array('version' => 1);
  12. }
  13. }
  14. /**
  15. * Implements hook_preprocess_html().
  16. */
  17. function metatag_facebook_preprocess_html(&$variables) {
  18. $variables['rdf_namespaces'] .= "\n xmlns:fb=\"http://ogp.me/ns/fb#\"";
  19. }
  20. /*
  21. fb:admins
  22. fb:app_id
  23. */