You are here

function eb_custom_slider_block in Featured Content Slider 7.2

Same name in this branch
  1. 7.2 contrib/eb_custom_slider.module \eb_custom_slider_block()
  2. 7.2 contrib/custom_slider/eb_custom_slider.module \eb_custom_slider_block()

implementation of hook_block().

File

contrib/custom_slider/eb_custom_slider.module, line 414
display content in 'featured content' block using jquery.

Code

function eb_custom_slider_block($op = 'list', $delta = 0) {
  global $base_url;
  if ($op == 'list') {
    $blocks[0]['info'] = 'content slider';
    return $blocks;
  }
  if ($op == 'view') {
    global $base_url;
    switch ($delta) {
      case 0:
        $content_type = $content_slider_source_1;
        $block['subject'] = 'content slider';
        $block['content'] = slider_make_blok();
        break;
    }
    return $block;
  }
}