You are here

function smileys_block in Smileys 6

Same name and namespace in other branches
  1. 5 smileys.module \smileys_block()

Implementation of hook_block().

File

./smileys.module, line 49

Code

function smileys_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_smileys_block'] ? smileys_table() : '';
          return $block;
      }
    }
  }
}