/[drupal]/contributions/modules/hidden/hidden.display-pages.inc
ViewVC logotype

Diff of /contributions/modules/hidden/hidden.display-pages.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Fri Dec 12 19:23:35 2008 UTC revision 1.3, Sat Dec 13 18:42:43 2008 UTC
# Line 1  Line 1 
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  /**  /**
# Line 109  function hidden_view($type, $id) { Line 109  function hidden_view($type, $id) {
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 {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2