You are here

function fb_social_block in Facebook social plugins integration 6

Same name and namespace in other branches
  1. 6.2 fb_social.module \fb_social_block()

Implementation of hook_block().

File

./fb_social.module, line 72
Common settings for all fb social plugins

Code

function fb_social_block($op = 'list', $delta = 0) {
  switch ($op) {
    case 'list':
      $info = array(
        'recommendations' => array(
          'info' => t('fb social: Recommendations'),
        ),
        'livestream' => array(
          'info' => t('fb social: Live stream'),
        ),
        'activityfeed' => array(
          'info' => t('fb social: Activity feed'),
        ),
        'facepile' => array(
          'info' => t('fb social: Facepile'),
        ),
      );
      return $info;
    case 'view':
      $function = "_fb_social_{$delta}_block";
      if (function_exists($function)) {
        return call_user_func($function);
      }
      break;
  }
}