home link block

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2013-02-12 14:18:13 +01:00
parent 90adf0ad52
commit c60696ba2b

View File

@ -34,6 +34,10 @@ function materio_user_block_info() {
'info' => t('Old data base link'),
'cache' => DRUPAL_NO_CACHE
);
$blocks['front_link'] = array(
'info' => t('Front page link'),
'cache' => DRUPAL_NO_CACHE
);
return $blocks;
}
@ -65,7 +69,10 @@ function materio_user_block_view($delta = '') {
$block['content'] = l(t('Old database'), $path);
}
break;
case 'front_link':
$block['subject'] = '';
$block['content'] = l('<i class="icon-home"></i>'.t('home'), '<front>', array('html'=>true));
break;
}
return $block;