You are here

function smiley_block in Smiley 6

Implementation of hook_block().

File

./smiley.module, line 49

Code

function smiley_block($op = 'list', $delta = 0) {
  if ($op == 'list') {
    $blocks[0]['info'] = t('Smileys on submission pages');
    return $blocks;
  }
  else {
    if ($op == 'view') {
      switch ($delta) {
        case 0:
          $block['subject'] = t('Smileys');
          $block['content'] = $GLOBALS['display_smiley_block'] ? smiley_table() : '';
          return $block;
      }
    }
  }
}