Skip to content

Instantly share code, notes, and snippets.

@kimpepper
Created March 25, 2014 07:37
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 kimpepper/9756829 to your computer and use it in GitHub Desktop.
Save kimpepper/9756829 to your computer and use it in GitHub Desktop.
<?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