Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there any documentation about what hooks and API functions metatag provides?
I'm trying to access the array of metatag values generated by the module either in template.php or in another module and can't seem to land on the right hook / function to get the array of tags and values. Purpose, if you're curious, is to grab the og:image tag and feed it as an attribute to code that generates a Pinterest button.
Comments
Comment #1
Mile23+1 on documentation.
metatag.api.php is a bit of a joke. :-)
metatag.metatag.inc offers a few clues.
Comment #2
DamienMcKennaComment #3
rubenspeculis CreditAttribution: rubenspeculis commented+1 on documentation.
Thanks Mile23 for the tip.
Comment #4
artofeclipse CreditAttribution: artofeclipse commentedCome on folks this module should have a Documentation for the API centuries ago!!
Comment #5
Mile23@artofeclipse: Write some and make a patch. :-)
Doxy formatting guidelines: http://drupal.org/node/1354 How to make a patch: http://drupal.org/patch
Comment #6
DamienMcKennaDuplicate of #1466292: Document all Metatag's hooks.