[Drupal 7] 

I have a block I created in Views called "handy_tips-block_1".

Now I want to insert it into the body field of my node.

How do I do this?

I found a guide on here, which suggests to use the following code:

&lt;?php
print $block = module_invoke('views', 'block_view', 'handy_tips-block_1');
print render($block['content']['#content']);
?&gt;


However, all what is printed out are the words "Array".
(I have enabled the PHP input filter for the body field).

Note: in the posted code, I have also tried substituting 'views' with various items such as "block". I have used 'handy_tips-block_1' as the ID, because that is what is displayed on the configuration link of the block administration page. 


Question: Redirecting users to referrer page after logging in using custom login form
Answer: The key part is right here-- 'redirect' =&gt; admin_url(), in your first block of code. Whatever you set that to is where you will redirect. I don't see a reason for the second block if you are redirecting everyone.

There is no function that I can find for "this page" so you probably want $_SERVER['REQUEST_URI']

$args = array(
    'redirect' =&gt; esc_url($_SERVER['REQUEST_URI']), 
    'form_id' =&gt; 'loginform-custom',
    'label_username' =&gt; __( 'Username' ),
    'label_password' =&gt; __( 'Password' ),
    'label_remember' =&gt; __( 'Remember Me' ),
    'label_log_in' =&gt; __( 'Log In' ),
    'remember' =&gt; true
);
wp_login_form( $args );


Be careful with $_SERVER vars: http://markjaquith.wordpress.com/2009/09/21/php-server-vars-not-safe-in-forms-or-links/