function _pmtask_plain_tree in Drupal PM (Project Management) 7
Provides task details for tasks within a tree.
5 calls to _pmtask_plain_tree()
- pmexpense_form in pmexpense/
pmexpense.module - Implements hook_pmexpense_form().
- pmnote_form in pmnote/
pmnote.module - Implements hook_form().
- pmtask_form in pmtask/
pmtask.module - Implements hook_form().
- pmticket_form in pmticket/
pmticket.module - Implements hook_form().
- pmtimetracking_form in pmtimetracking/
pmtimetracking.module - Implements hook_form().
File
- pmtask/
pmtask.module, line 719
Code
function _pmtask_plain_tree($tree) {
$rows = array();
foreach ($tree as $item) {
$nid = $item->nid;
$title = check_plain($item->title);
if ($item->stepno) {
$title = check_plain($item->stepno) . ' ' . $title;
}
if ($nid) {
$rows[$nid] = str_repeat('--', $item->depth) . ' ' . $title;
}
}
return $rows;
}