You are here

function youtubechannel_block in YoutubeChannel 6

Implements hook_block().

File

./youtubechannel.module, line 41
module file for youtubechannel.

Code

function youtubechannel_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks = array();
    $blocks['youtubechannel'] = array(
      'info' => t('Youtube Channel'),
      'status' => 1,
      'region' => 'left',
    );
    return $blocks;
  }
  elseif ($op == 'view') {
    $block = array();
    switch ($delta) {
      case 0:
        $block['subject'] = t('Youtube Channel');
        $block['content'] = youtubechannel_getview();
        return $block;
    }
  }
}