| 1 |
<?php |
<?php |
| 2 |
// $Id: hidden.display-pages.inc,v 1.1 2008/12/10 23:03:47 ekes Exp $ |
// $Id: hidden.display-pages.inc,v 1.2 2008/12/12 19:23:35 ekes Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 6 |
* Hidden user pages to display hidden content. |
* Hidden user pages to display hidden content. |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
/** |
/** |
| 109 |
if ($type == 'comment') { |
if ($type == 'comment') { |
| 110 |
$comment = _comment_load($id); |
$comment = _comment_load($id); |
| 111 |
$node = node_load($comment->nid); |
$node = node_load($comment->nid); |
| 112 |
drupal_set_title(t('Hidden comment: ') . check_plain($comment->subject)); |
drupal_set_title(t('Hidden comment: @title', array('@title' => $comment->subject))); |
| 113 |
$links = hidden_link('comment', $comment); |
$links = hidden_link('comment', $comment); |
| 114 |
$output = theme_comment_view($comment, $node, $links); |
$output = theme_comment_view($comment, $node, $links); |
| 115 |
} |
} |
| 116 |
elseif ($type == 'node') { |
elseif ($type == 'node') { |
| 117 |
$node = node_load($id); |
$node = node_load($id); |
| 118 |
drupal_set_title(t('Hidden node: ') . check_plain($node->title)); |
drupal_set_title(t('Hidden node: @title', array('@title' => $node->title))); |
| 119 |
$output = node_show($node, 0); |
$output = node_show($node, 0); |
| 120 |
} |
} |
| 121 |
else { |
else { |