function shorten_block_info in Shorten URLs 7
Same name and namespace in other branches
- 7.2 shorten.module \shorten_block_info()
Implements hook_block_info().
File
- ./
shorten.module, line 59 - Shortens URLs via external services.
Code
function shorten_block_info() {
$blocks = array();
$blocks['shorten']['info'] = t('Shorten URLs');
$blocks['shorten']['visibility'] = 0;
$blocks['shorten']['pages'] = 'shorten';
$blocks['shorten_short']['info'] = t('Short URL');
$blocks['shorten_short']['cache'] = DRUPAL_CACHE_PER_PAGE;
return $blocks;
}