0

I am using OneAll social login module for social registration and login. The module's login block works well on any page but not on a .php file. I am trying to render the block in a xyz.php file programmatically. When I try to render it via the following code I only gets The heading text of the block without the Facebook and Google's links.

$blockObject = block_load('social_login_widget', 'social_login_widget');
$block_ = _block_get_renderable_array(_block_render_blocks(array($blockObject)));
$output = drupal_render($block_);

Check the attached screenshot to see the code output. You can see I only get Login with your Social Network account.

screenshot

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.