| 1 |
<?php |
<?php |
| 2 |
// $Id: stormtask.theme.inc,v 1.3 2008/05/16 12:58:02 robertogerola Exp $ |
// $Id: stormtask.theme.inc,v 1.3.4.1 2008/07/21 07:28:34 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 53 |
$o = theme('table', $header, $rows); |
$o = theme('table', $header, $rows); |
| 54 |
return $o; |
return $o; |
| 55 |
} |
} |
| 56 |
|
|
| 57 |
|
function theme_stormtask_view($node, $teaser = FALSE, $page = FALSE) { |
| 58 |
|
$node = node_prepare($node, $teaser); |
| 59 |
|
|
| 60 |
|
$w = 0; |
| 61 |
|
$node->content['stormtask'] = array( |
| 62 |
|
'#prefix' => '<div id="stormtask">', |
| 63 |
|
'#suffix' => '</div>', |
| 64 |
|
'#weight' => $w++, |
| 65 |
|
); |
| 66 |
|
|
| 67 |
|
$node->content['stormtask']['organization'] = array( |
| 68 |
|
'#prefix' => '<div class="organization">', |
| 69 |
|
'#suffix' => '</div>', |
| 70 |
|
'#value' => theme('storm_view_item', storm_t('Organization', 'task'), l($node->organization_title, 'node/'. $node->organization_nid)), |
| 71 |
|
'#weight' => $w++, |
| 72 |
|
); |
| 73 |
|
|
| 74 |
|
$node->content['stormtask']['project'] = array( |
| 75 |
|
'#prefix' => '<div class="project">', |
| 76 |
|
'#suffix' => '</div>', |
| 77 |
|
'#value' => theme('storm_view_item', storm_t('Project', 'task'), l($node->project_title, 'node/'. $node->project_nid)), |
| 78 |
|
'#weight' => $w++, |
| 79 |
|
); |
| 80 |
|
|
| 81 |
|
$node->content['stormtask']['stepno'] = array( |
| 82 |
|
'#prefix' => '<div class="stepno">', |
| 83 |
|
'#suffix' => '</div>', |
| 84 |
|
'#value' => theme('storm_view_item', storm_t('Step no.', 'task'), $node->stepno), |
| 85 |
|
'#weight' => $w++, |
| 86 |
|
); |
| 87 |
|
|
| 88 |
|
return $node; |
| 89 |
|
} |