You are here

function text_resize_block in Text Resize 6

Implementation of hook_block().

File

./text_resize.module, line 179
Creates a small block with jQuery links that resize text within the BODY tag.

Code

function text_resize_block($op = 'list', $delta = 0, $edit = array()) {
  global $user;
  switch ($op) {
    case 'list':

      // Makes it show up on /admin/build/block page.
      $blocks[0]['info'] = t('Text Resize');
      return $blocks;
    case 'view':

      // Show the block.
      $block['subject'] = t('Text Resize');
      $block['content'] = theme('text_resize_block');
      return $block;
  }
}