You are here

function fb_social_block_info in Facebook social plugins integration 7.2

Implements hook_block_info().

File

./fb_social.module, line 66

Code

function fb_social_block_info() {
  $blocks = array();

  // load all presets
  if ($presets = fb_social_get_presets()) {
    foreach ($presets as $preset) {
      if ($preset->settings['block']) {
        $blocks[$preset->name] = array(
          'info' => $preset->name . ' block',
          'cache' => DRUPAL_NO_CACHE,
        );
      }
    }
  }
  return $blocks;
}