Skip to main content

Verify your Drupal site on Pinterest

Published on
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.
#