Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This just allows the project summary pages to be displayed with the same node theming as the rest of the site:
diff -u project/project.module contrib/project/project.module
--- project/project.module 2006-09-07 18:01:58.000000000 -0700
+++ contrib/project/project.module 2006-09-28 02:09:56.000000000 -0700
@@ -920,13 +920,13 @@
* - links: Array of links
*/
function theme_project_summary($project) {
- $output = '<div class="' . $project->class . '">';
- $output .= '<h2>'. l($project->title, "node/$project->nid") .'</h2>';
+ $output = '<div class="node">'; //' . $project->class . '">';
+ $output .= '<h2 class="title">'. l($project->title, "node/$project->nid") .'<
/h2>';
if ($project->changed) {
$output .= '<p><small>' . t('Last changed: %interval ago', array('%interval
' => format_interval(time() - $project->changed, 2))) . '</small></p>';
}
$output .= $project->body;
- $output .= theme('links', $project->links);
+ $output .= '<div class="links">' . theme('links', $project->links) . '</div>'
;
if ($project->terms) {
$output .= '<br />' . theme('links', $project->terms);
}
Comments
Comment #1
dwwplease attach a real patch file for this change. see http://drupal.org/patch or http://drupal.org/diffandpatch for more info.
thanks,
-derek
Comment #2
drummAs of D7, node theming is relatively standard.