/[drupal]/contributions/modules/trash/trash.module
ViewVC logotype

Diff of /contributions/modules/trash/trash.module

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

revision 1.2, Thu Feb 21 17:42:15 2008 UTC revision 1.2.2.1, Wed Mar 25 09:54:33 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: trash.module,v 1.2 2008/02/21 17:42:15 roetzi Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 251  function trash_delete_button_removing_en Line 251  function trash_delete_button_removing_en
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>';
# Line 322  function trash_view() { Line 322  function trash_view() {
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 {

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

  ViewVC Help
Powered by ViewVC 1.1.2