You are here

function fb_social_send_block in Facebook social plugins integration 6

Implementation of hook_block

File

modules/fb_social_send/fb_social_send.module, line 65

Code

function fb_social_send_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks['send'] = array(
        'info' => t('fb social: send'),
      );
      return $blocks;
    case 'view':
      switch ($delta) {
        case 'send':
          $url = fb_social_url($_GET['q']);
          return array(
            'subject' => t(''),
            'content' => theme('fb_social_send_widget', $url),
          );
      }
      break;
  }
}