From 3bdbc6869007505bee39178d2a1f96ad1696b64a Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 8 Oct 2013 14:26:08 +0200 Subject: [PATCH] replace register form to join us link on home login block --- materio_user.module | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/materio_user.module b/materio_user.module index c314502a..a3972366 100755 --- a/materio_user.module +++ b/materio_user.module @@ -54,10 +54,13 @@ function materio_user_block_view($delta = '') { $block['subject'] = '';//drupal_is_front_page() ? t('Your projects will born from here') : t('Create your materiO\' account'); $block['content'] = '

'. t('Login') . '

'; $block['content'] .= drupal_render(drupal_get_form('user_login')); - $block['content'] .= '

'. t('or create your materiO\' account') . '

'; - $block['content'] .= drupal_render(drupal_get_form('user_register_form')); - - + if (drupal_is_front_page()) { + $block['content'] .= '

'. t('or create your materiO\' account') . '

'; + $block['content'] .= l(t('Join us'), 'node/11187', array("attributes"=>array("class"=>array("join")))); + }else{ + $block['content'] .= '

'. t('or create your materiO\' account') . '

'; + $block['content'] .= drupal_render(drupal_get_form('user_register_form')); + } // $block['content'] .= l(t('Pricing'), 'node/11187', array('attributes' => array('class' => 'pricing'),)); } break;