| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: trash.module,v 1.1.2.1 2008/03/12 00:03:39 roetzi Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 234 |
*/ |
*/ |
| 235 |
function trash_deleted_message($node) { |
function trash_deleted_message($node) { |
| 236 |
$output = ''; |
$output = ''; |
| 237 |
drupal_set_title(t('Trash:') . ' ' . $node->title); |
drupal_set_title(t('Trash: @title', array('@title' => $node->title))); |
| 238 |
if (user_access('view trash')) { |
if (user_access('view trash')) { |
| 239 |
$output .= '<p>' . t('This page has been moved to the !trash.', array('!trash' => l(t('trash'), 'trash'))) . '</p>'; |
$output .= '<p>' . t('This page has been moved to the !trash.', array('!trash' => l(t('trash'), 'trash'))) . '</p>'; |
| 240 |
$output .= '<p>' . t('You can') . '</p><ul>'; |
$output .= '<p>' . t('You can') . '</p><ul>'; |
| 305 |
function trash_view_node($node) { |
function trash_view_node($node) { |
| 306 |
$output = ''; |
$output = ''; |
| 307 |
if (node_access('view', $node) && $node->status == STATUS_TRASH) { |
if (node_access('view', $node) && $node->status == STATUS_TRASH) { |
| 308 |
drupal_set_title(t('Trash:') . ' ' . check_plain($node->title)); |
drupal_set_title(t('Trash: @title', array('@title' => $node->title))); |
| 309 |
$output = node_view($node, FALSE, TRUE, TRUE); |
$output = node_view($node, FALSE, TRUE, TRUE); |
| 310 |
} |
} |
| 311 |
else { |
else { |