You are here

function juicerio_block_view in Juicer - Social Media Feed Aggregator 7

Implements hook_block_view().

File

./juicerio.module, line 112
Module file for the Juicer Integration module.

Code

function juicerio_block_view($delta = 1) {
  $block = array();
  $feed_id = variable_get('juicerio_feed_id');
  $count = variable_get('juicerio_blocks', 1);
  $infinite = variable_get($delta . '_infinite_pages');
  $infinite_pages = $infinite === 0 ? NULL : $infinite;
  $variables = array(
    'feed_id' => $feed_id,
    'post_num' => variable_get($delta . '_post_number'),
    'infinite_pages' => $infinite_pages,
    'gutter_amt' => variable_get($delta . '_gutter_amt'),
    'column_num' => variable_get($delta . '_column_number'),
    'filters' => variable_get($delta . '_filter'),
  );
  $block['subject'] = NULL;
  $block['content'] = theme('juicerio_feed', $variables);
  return $block;
}