Admin Menu links to the project URL via drupal.org for all installed modules. Some don't have an issue queue (project or module) on d.o though.
If we recognised a custom .info value when building the list for issue queues we could do this
name = MyModule
description = Custom module for Organization X
package = Custom
core = 6.x
issue_url = http://example.com/support
// Add links to project issue queues.
$links[] = array(
'title' => 'Drupal issue queue',
'path' => 'http://drupal.org/project/issues/drupal',
'weight' => -10,
'parent_path' => 'http://drupal.org',
);
$projects = array();
foreach (module_list(FALSE, FALSE, TRUE) as $module) {
$info = drupal_parse_info_file(drupal_get_path('module', $module) .'/'. $module .'.info');
if (!isset($info['project']) && !isset($info['issue_url') || (isset($info['project']) && ($info['project'] == 'drupal' || isset($projects[$info['project']])))) {
continue;
}
$projects[$info['project']] = 1;
if (isset($info['issue_url'])) {
$url = $info['issue_url'] ;
}
else {
$url = 'http://drupal.org/project/issues/'. $info['project'];
}
// Filtering project versions via query string is not yet supported.
// @see http:// drupal.org /node /97569
// $url .= !empty($info['version']) ? '/'. $info['version'] : '';
$links[] = array(
'title' => check_plain($info['name']) . ' issue queue',
'path' => $url,
'parent_path' => 'http://drupal.org',
);
}
Maybe even test for "issue_url = none" and allow omission also.
Comments
Comment #1
sunProject module already implements such a property, but I don't know it off hand. If you'd look it up, then we could move forward here.
Comment #2
truls1502I am going to close the issue because it can not be fixed. There is no
issue_urlon the .info file when creating a Drupal 7 module, or please correct me if I am wrong.