Drupal 6 - Show default "Who's online" block from a template.

/ Published in: PHP
Save to your folder(s)

Embed the "Who's online" block from within a template file.

Copy this code and paste it in your HTML
  1. $block = (object) module_invoke('user', 'block', 'view', '3');
  2. print theme('block',$block);

URL: http://daipratt.co.uk

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.