Index: issue.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/issue.inc,v retrieving revision 1.295 diff -u -r1.295 issue.inc --- issue.inc 31 Jan 2008 00:22:17 -0000 1.295 +++ issue.inc 25 Feb 2008 23:27:51 -0000 @@ -694,8 +694,17 @@ $assigned[$node->assigned] = $account->name; } } - // Always let the person replying assign it to themselves. - $assigned[$user->uid] = $user->name; + + // Retrieve other potential assignees + foreach (module_implements('issue_assignees') as $module) { + $func = "{$module}_issue_assignees"; + $assignees = $func($node); + foreach ($assignees as $assignee_uid => $assignee_name) { + if (!$assigned[$assignee_uid]) { + $assigned[$assignee_uid] = $assignee_name; + } + } + } if (trim($project->help)) { $form['project_help'] = array( @@ -884,6 +893,16 @@ } /** + * Implementation of hook_issue_assignees() + */ +function project_issue_issue_assignees($node) { + global $user; + // Always let the person replying assign it to themselves. + $assigned[$user->uid] = $user->name; + return $assigned; +} + +/** * Themes the metadata table and internal page links for issue nodes. * * @param $summary_table_rows