By nishitdas on
Below is the piece of code I have written to generate a block with two tabs containing new users and user activity. I am getting the out put as expected but the problem is the link to the user is not correctly populated.
Instead of http://www.site.com/user/username I am getting http://www.site.com/#View_user_profile.
$user_new = module_invoke('user', 'block', 'view',2);
$user_activity = module_invoke('user_activity', 'block', 'view',0);
$form['profile'] = array(
'#type' => 'tabset',
);
$form['profile']['tab1'] = array(
'#type' => 'tabpage',
'#title' => t('<em class="camera"></em><b>new</b>'),
'#content' => $user_new['content'],
);
$form['profile']['tab2'] = array(
'#type' => 'tabpage',
'#title' => t('<em class="camera"></em><b>activity</b>'),
'#content' => $user_activity['content'],
);
return tabs_render($form);
Comments
any help guys
any help guys