You are here

function responsive_share_buttons_block_view in Responsive Share Buttons 7

Implements hook_block_view().

File

./responsive_share_buttons.module, line 66
Module to enable CSS responsive share buttons.

Code

function responsive_share_buttons_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'share':
      $block['subject'] = '';
      $block['content'] = array(
        '#markup' => theme('responsive_share_buttons'),
        '#attached' => array(
          'css' => array(
            drupal_get_path('module', 'responsive_share_buttons') . '/css/responsive_share_buttons.css',
          ),
          'js' => array(
            drupal_get_path('module', 'responsive_share_buttons') . '/js/responsive_share_buttons.js',
          ),
        ),
      );
      break;
  }
  return $block;
}