| 1 |
<?php |
<?php |
| 2 |
// $Id: chatroom.module,v 1.63.2.62 2009/11/22 09:37:52 justinrandell Exp $ |
// $Id: chatroom.module,v 1.63.2.63 2009/11/23 14:53:58 justinrandell Exp $ |
| 3 |
|
|
| 4 |
require_once dirname(__FILE__) . '/chatroom.forms.inc'; |
require_once dirname(__FILE__) . '/chatroom.forms.inc'; |
| 5 |
require_once dirname(__FILE__) . '/chatroom.theme.inc'; |
require_once dirname(__FILE__) . '/chatroom.theme.inc'; |
| 482 |
* Implementation of hook_view(). |
* Implementation of hook_view(). |
| 483 |
*/ |
*/ |
| 484 |
function chatroom_view($node, $teaser = FALSE, $page = FALSE) { |
function chatroom_view($node, $teaser = FALSE, $page = FALSE) { |
| 485 |
|
global $user; |
| 486 |
|
|
| 487 |
$node = node_prepare($node); |
$node = node_prepare($node); |
| 488 |
if (!$teaser && $page) { |
if (!$teaser && $page) { |
| 489 |
// if the user is banned, just tell them why |
// if the user is banned, just tell them why |