Last active
August 29, 2015 14:03
-
-
Save aprohl5/ad38d8e20593fc99a248 to your computer and use it in GitHub Desktop.
Just trying to make a block.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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