function support_pm_comment in Support Ticketing System 6
File
- support_pm/
support_pm.module, line 215 - Support Project Management. @author Jeremy Andrews <jeremy@tag1consulting.com> @package Support
Code
function support_pm_comment(&$comment, $op) {
if (is_array($comment)) {
$node = node_load($comment['nid']);
}
else {
$node = node_load($comment->nid);
}
if ($node->type == 'support_ticket') {
switch ($op) {
case 'view':
if (user_access('view support projects')) {
if ($project = support_pm_project_load_nid($node->nid)) {
$comment->comment = "<div class='support-priority'>Project: " . check_plain($project->project) . '</div>' . $comment->comment;
}
}
}
}
}