Skip to content

Instantly share code, notes, and snippets.

@evolvingweb
Created March 29, 2012 20:53
Show Gist options
  • Save evolvingweb/2243687 to your computer and use it in GitHub Desktop.
Save evolvingweb/2243687 to your computer and use it in GitHub Desktop.
hook_block_info()
<?php
/*
* Implements hook_block_info()
*
* Adds a custom block
*/
function mymodule_block_info() {
$blocks['ad'] = array(
'info' => t('Advertisement'),
// DRUPAL_CACHE_PER_ROLE assumed
);
return $blocks;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment