The Drupal version I'm using is v7.34. I'm using sub-theme created from Bootstrap as base theme. My problem is, I want to override the "User Login Block" and put it in the header region (top bar), so I create these file in templates folder in my sub-theme:
//this simply do print render($page['header']);
$search_block = module_invoke('search', 'block_view', 'search'); $login_block = module_invoke('user', 'block_view', 'login'); print render($search_block); print render($login_block);
//this copied from base theme and only modified some html tag
//this simply print out some simple text print ("blahhhhhhhhhhhhhh");
The result is, only search block is rendered as override, and the login block is rendered as default block, not rendered as the one I override. I did some search but nothing matches my fault.