| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: trash.module,v 1.2 2008/02/21 17:42:15 roetzi Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 251 |
*/ |
*/ |
| 252 |
function trash_deleted_message($node) { |
function trash_deleted_message($node) { |
| 253 |
$output = ''; |
$output = ''; |
| 254 |
drupal_set_title(t('Trash:') . ' ' . $node->title); |
drupal_set_title(t('Trash: @title', array('@title' => $node->title))); |
| 255 |
if (user_access('view trash')) { |
if (user_access('view trash')) { |
| 256 |
$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>'; |
| 257 |
$output .= '<p>' . t('You can') . '</p><ul>'; |
$output .= '<p>' . t('You can') . '</p><ul>'; |
| 322 |
function trash_view_node($node) { |
function trash_view_node($node) { |
| 323 |
$output = ''; |
$output = ''; |
| 324 |
if (node_access('view', $node) && $node->status == STATUS_TRASH) { |
if (node_access('view', $node) && $node->status == STATUS_TRASH) { |
| 325 |
drupal_set_title(t('Trash:') . ' ' . check_plain($node->title)); |
drupal_set_title(t('Trash: @title', array('@title' => $node->title))); |
| 326 |
$output = node_view($node, FALSE, TRUE, TRUE); |
$output = node_view($node, FALSE, TRUE, TRUE); |
| 327 |
} |
} |
| 328 |
else { |
else { |