You are here

function socialfeed_block in Social Feed 6

Implements hook_block().

File

./socialfeed.module, line 596
Module for fetching data from Facebook, Twitter, Youtube, and Foursquare. This module provides block content retrieved from a

Code

function socialfeed_block($op = 'list', $delta = 0, $edit = array()) {

  // Adds CSS.
  drupal_add_css(drupal_get_path('module', 'socialfeed') . '/css/socialfeed.css');
  $feedtitle = variable_get('socialfeed_title', FALSE);
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('Social Media Feed');
      return $blocks;
    case 'view':
      $blocks['subject'] = t($feedtitle);
      $blocks['content'] = socialfeed_build_the_feed();
      return $blocks;
  }
}