typo and strict php warning fixe

This commit is contained in:
Bachir Soussi Chiadmi
2013-11-03 15:33:11 +01:00
parent ab51102cd0
commit 91c826322e
2 changed files with 3 additions and 2 deletions

View File

@@ -115,7 +115,8 @@ function materio_user_block_view($delta = '') {
if(isset($user->roles[1])){
$block['subject'] = '';//drupal_is_front_page() ? t('Your projects will born from here') : t('Create your materiO\' account');
$block['content'] = '<h3>'. t('Login') . '</h3>';
$block['content'] .= drupal_render(drupal_get_form('user_login'));
$ulog_form = drupal_get_form('user_login');
$block['content'] .= drupal_render($ulog_form);
if (drupal_is_front_page()) {
$block['content'] .= '<h3>'. t('<span>or </span>create your materiO\' account') . '</h3>';
$block['content'] .= l(t('Join us'), 'node/11187', array("attributes"=>array("class"=>array("join"))));