You are here

function shariff_block_view in Shariff Social Media Buttons 7

Implements hook_block_view().

File

./shariff.module, line 302
Integrating Shariff library, providing settings form and block.

Code

function shariff_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'shariff_block':
      $settings = _shariff_get_settings();
      if (!empty($settings['services'])) {
        $block['content'] = theme('shariff', $settings);
      }
      break;
  }
  return $block;
}