You are here

function shorten_block_view in Shorten URLs 7

Same name and namespace in other branches
  1. 7.2 shorten.module \shorten_block_view()

Implements hook_block_view().

File

./shorten.module, line 72
Shortens URLs via external services.

Code

function shorten_block_view($delta = '') {
  $block = array();
  if ($delta == 'shorten') {
    $block['subject'] = t('Shorten URLs');
    $block['content'] = shorten_form_shorten_form();
    return $block;
  }
  elseif ($delta == 'shorten_short') {
    $block['subject'] = t('Short URL');
    $block['content'] = shorten_current_form();
    return $block;
  }
}