Skip to content

Instantly share code, notes, and snippets.

@stewsnooze
Created December 8, 2011 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stewsnooze/1446447 to your computer and use it in GitHub Desktop.
Save stewsnooze/1446447 to your computer and use it in GitHub Desktop.
Adding a relevant content block in code
/**
* Update 6014: Set relevant content blocks active
*/
function ff_update_6014() {
$rc = array(
'video_nodes' => array(
'types' => array('video' => 'video'),
'vocabs' => array(
'1' => '1',
'limit' => 5,
'header_text' => '',
'token_settings' => '',
)
)
);
variable_set('relevant_content', $rc);
return array();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment