/[drupal]/contributions/modules/storm/stormticket/stormticket.theme.inc
ViewVC logotype

Diff of /contributions/modules/storm/stormticket/stormticket.theme.inc

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

revision 1.5, Wed Jun 11 14:32:07 2008 UTC revision 1.5.4.1, Mon Sep 1 08:50:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormticket.theme.inc,v 1.4 2008/05/16 12:58:25 robertogerola Exp $  // $Id: stormticket.theme.inc,v 1.5 2008/06/11 14:32:07 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 32  function theme_stormticket_list($header, Line 32  function theme_stormticket_list($header,
32    $o = theme('table', $header, $rows);    $o = theme('table', $header, $rows);
33    return $o;    return $o;
34  }  }
35    
36    function theme_stormticket_view($node, $teaser = FALSE, $page = FALSE) {
37      $node = node_prepare($node, $teaser);
38    
39      $w = 0;
40      $node->content['stormticket'] = array(
41        '#prefix' => '<div id="stormticket">',
42        '#suffix' => '</div>',
43        '#weight' => $w++,
44      );
45    
46      $node->content['stormticket']['organization'] = array(
47        '#prefix' => '<div class="organization">',
48        '#suffix' => '</div>',
49        '#value' => theme('storm_view_item', storm_t('Organization', 'ticket'), l($node->organization_title, 'node/'. $node->organization_nid)),
50        '#weight' => $w++,
51      );
52    
53      $node->content['stormticket']['project'] = array(
54        '#prefix' => '<div class="project">',
55        '#suffix' => '</div>',
56        '#value' => theme('storm_view_item', storm_t('Project', 'ticket'), l($node->project_title, 'node/'. $node->project_nid)),
57        '#weight' => $w++,
58      );
59    
60      $node->content['stormticket']['task'] = array(
61        '#prefix' => '<div class="task">',
62        '#suffix' => '</div>',
63        '#value' => theme('storm_view_item', storm_t('Task', 'ticket'), l($node->task_title, 'node/'. $node->task_nid)),
64        '#weight' => $w++,
65      );
66    
67      return $node;
68    }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.4.1

  ViewVC Help
Powered by ViewVC 1.1.2