Skip to content

Instantly share code, notes, and snippets.

@cyberlex404
Created October 6, 2013 13:44
Show Gist options
  • Select an option

  • Save cyberlex404/6854303 to your computer and use it in GitHub Desktop.

Select an option

Save cyberlex404/6854303 to your computer and use it in GitHub Desktop.
Islands
name = Islands
description = Islands connect.
package = Islands
core = 7.x
<?php
function islands_init(){
drupal_set_message('islands');
}
function islands_html_head_alter(&$head_elements){
$head_elements['islands_interaction'] = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array('property' => 'ya:interaction', 'content' => 'XML_FORM'),
);
$head_elements['islands_interaction_url'] = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array('property' => 'ya:interaction:url', 'content' => '/sites/all/islands.xml'),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment