Index: project.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project/project.module,v retrieving revision 1.244 diff -u -r1.244 project.module --- project.module 6 Jun 2006 10:06:56 -0000 1.244 +++ project.module 9 Jun 2006 14:37:59 -0000 @@ -278,14 +278,22 @@ switch ($type) { case 'page': if (user_access('access projects')) { - $links[] = l(t('projects'), 'project', array('title' => t('View all projects.'))); + $links['project_access_project'] = array( + '#title' => t('projects'), + '#href' => "project", + '#attributes' => array('title' => t('View all projects.')), + ); } break; case 'node': if ($node->type == 'project_issue') { if (user_access('create project issues')) { $project = node_load(array('nid' => $node->pid, 'type' => 'project_project')); - $links[] = l(t('follow up'), "project/comments/add/$node->nid"); + $links['project_access_project'] = array( + '#title' => t('projects'), + '#href' => "project", + '#attributes' => array('title' => t('View all projects.')), + ); } } break; @@ -728,13 +736,25 @@ $project->links = array(); if ($project->path) { - $project->links[] = '' . t('Download') . ''; + $links['project_access_project'] = array( + '#title' => t('projects'), + '#href' => "project", + '#attributes' => array('title' => t('View all projects.')), + ); } - $project->links[] = l(t('Find out more'), "node/$project->nid"); + $links['project_access_project'] = array( + '#title' => t('projects'), + '#href' => "project", + '#attributes' => array('title' => t('View all projects.')), + ); // This test doesn't currently work when taxonomy is enabled, since taxonomy_select_nodes doesn't load the issues setting from project_project if ($project->issues) { - $project->links[] = l(t('Bugs and feature requests'), "project/issues/$project->nid"); + $links['project_access_project'] = array( + '#title' => t('projects'), + '#href' => "project", + '#attributes' => array('title' => t('View all projects.')), + ); } if (module_invoke($module, 'project_sort_methods', 'group by date', $sort_method) && $date = _project_date($project->changed)) { $projects .= "

$date

";