Skip to main content
← blog / drupal
Jun 06, 2014  ·  #drupal  ·  1 min read

Verify your Drupal site on Pinterest

The Metatag module and Site Verification module help setup site verification and social media integration. However social media is rapidly changing, more often than those submitting patches (or modules getting releases.) Or, hell, you're like me and think it's pointless to add a contrib module for a simple use case (note: I rock Metatag on this site.) One such case is Pinterest site verification. As far as I know this isn't supported by either module (more than likely it never will be on Metatag.) I whipped this up onto dropbucket.org for a friend and decided to share it here, as well. 'meta', '#attributes' => array( 'name' => 'p:domain_verify', 'content' => 'CODE__PROVIDED__HERE', ), ); drupal_add_html_head($pinterest_domain, 'p:domain_verify'); } This snippet can easily be reused for various site verifications, as well.
Thanks for reading

I write about Drupal, PHP, and the quiet infrastructure behind large sites — caching, config, and testing. New posts land every week or two.