Created
March 25, 2014 07:37
-
-
Save kimpepper/9756829 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Implements hook_block_view(). | |
*/ | |
function guzzle_example_block_view($delta = '') { | |
$block = array(); | |
$example = GuzzleExample::create(); | |
switch ($delta) { | |
case 'host_ip': | |
$block['subject'] = t('Host IP Address'); | |
$block['content'] = guzzle_example_get_host_ip(); | |
break; | |
} | |
return $block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment