function smileys_block in Smileys 5
Same name and namespace in other branches
- 6 smileys.module \smileys_block()
Implementation of hook_block().
File
- ./
smileys.module, line 52
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;
}
}
}
}