Skip to content

Instantly share code, notes, and snippets.

@aprohl5
Last active August 29, 2015 14:03
Show Gist options
  • Save aprohl5/ad38d8e20593fc99a248 to your computer and use it in GitHub Desktop.
Save aprohl5/ad38d8e20593fc99a248 to your computer and use it in GitHub Desktop.
Just trying to make a block.
<?php
/**
* @file
* Code for the Volunteer Rally Core feature.
*/
include_once 'vr_core.features.inc';
/**
* Shift node type.
*/
define('VR_CORE_SHIFT_NODE_TYPE', 'shift');
/**
* Implements hook_block_info().
*
*Adds sitewide blocks
*/
function vr_core_block_info() {
$blocks['footer_block'] = array(
'info' => t('Footer Block'),
'cache' => DRUPAL_CACHE_GLOBAL,
);
return $blocks;
}
/**
*Implements hook_block_view().
*
*Adds sitewide Blocks.
*/
function vr_core_block_view($delta = '') {
$block = array();
switch($delta) {
case 'footer_block':
$block['content'] = array (
'#markup' => '<p> Volunteer Rally is an awesome piece of software built by <a href="http://opensourcery.com">OpenSourcery</a>.</p>',
);
break;
}
return $block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment