You are here

function socbutt_block_view in Bootstrap Social Sharing Buttons 7

Implements hook_block_view().

File

./socbutt.module, line 80

Code

function socbutt_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'vertical':
      $block['subject'] = NULL;
      $block['content'] = theme('socbutt_buttons', array(
        'layout' => SOCBUTT_LAYOUT_VERTICAL,
      ));
      break;
    case 'horizontal':
      $block['subject'] = NULL;
      $block['content'] = theme('socbutt_buttons', array(
        'layout' => SOCBUTT_LAYOUT_HORIZONTAL,
      ));
      break;
  }
  return $block;
}