? drupalorg-patch-1.patch
? x
Index: branches.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/branches.module,v
retrieving revision 1.1
diff -u -F^f -r1.1 branches.module
--- branches.module 1 Jul 2008 21:06:47 -0000 1.1
+++ branches.module 1 Jul 2008 22:16:49 -0000
@@ -3,14 +3,16 @@
function branches_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page = FALSE) {
if ($op == 'view' && $page) {
+ $extra = '';
switch ($node->nid) {
case 97084:
- $node->body .= branches_body_contrib();
+ $extra = branches_body_contrib();
return;
case 93997:
- $node->body .= branches_body_core();
+ $extra = branches_body_core();
return;
}
+ $node->content['body']['#value'] .= $extra;
}
}
@@ -28,7 +30,6 @@ function branches_body_contrib() {
}
function branches_body_core() {
-
$output = '
';
$query= db_query("SELECT tag
FROM {cvs_tags}
Index: handbook.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/handbook.module,v
retrieving revision 1.1
diff -u -F^f -r1.1 handbook.module
--- handbook.module 1 Jul 2008 21:06:47 -0000 1.1
+++ handbook.module 1 Jul 2008 22:16:49 -0000
@@ -3,36 +3,38 @@
function handbook_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page = FALSE) {
if ($op == 'view' && $page) {
+ $extra = '';
switch ($node->nid) {
case 43633: // Handbook pages with comments
- $node->body .= handbook_with_comments();
+ $extra = handbook_with_comments();
return;
case 43639: // Most popular handbooks
- $node->body .= handbook_most_popular();
+ $extra = handbook_most_popular();
return;
case 322: // Mailing list subscription
- $node->body .= drupal_get_form('lists_subscribe');
+ $extra = drupal_get_form('lists_subscribe');
return;
case 318: // Coding standards, filtered for XSS
$file = file_get_contents('/var/www/drupal.org/project/cvs/contrib-cvs/CODING_STANDARDS.html');
- $node->body .= filter_xss_admin($file);
+ $extra = filter_xss_admin($file);
return;
case 13355: // Site maintainers
- $node->body .= handbook_site_maintainers();
+ $extra = handbook_site_maintainers();
return;
case 109372: // Handbook maintainers
- $node->body .= handbook_maintainers();
+ $extra = handbook_maintainers();
return;
case 14205: // Book contributors
- $node->body .= handbook_book_contributors();
+ $extra = handbook_book_contributors();
return;
case 263594: // Revision maintainers
- $node->body .= handbook_revision_maintainers();
+ $extra = handbook_revision_maintainers();
return;
case 23192: // Recent updates
- $node->body .= handbook_recent_updates();
+ $extra = handbook_recent_updates();
return;
}
+ $node->content['body']['#value'] .= $extra;
}
}
Index: project_stuff.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/project_stuff.module,v
retrieving revision 1.1
diff -u -F^f -r1.1 project_stuff.module
--- project_stuff.module 1 Jul 2008 21:06:47 -0000 1.1
+++ project_stuff.module 1 Jul 2008 22:16:49 -0000
@@ -3,14 +3,16 @@
function project_stuff_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page = FALSE) {
if ($op == 'view' && $page) {
+ $extra = '';
switch ($node->nid) {
case 206666:
- $node->body .= project_stuff_by_core();
+ $extra = project_stuff_by_core();
return;
case 199251:
- $node->body .= project_stuff_cvs_rss();
+ $extra = project_stuff_cvs_rss();
return;
}
+ $node->content['body']['#value'] .= $extra;
}
}
Index: quick_stats.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/quick_stats.module,v
retrieving revision 1.1
diff -u -F^f -r1.1 quick_stats.module
--- quick_stats.module 1 Jul 2008 21:06:47 -0000 1.1
+++ quick_stats.module 1 Jul 2008 22:16:49 -0000
@@ -3,14 +3,16 @@
function quick_stats_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page = FALSE) {
if ($op == 'view' && $page) {
+ $extra = '';
switch ($node->nid) {
case 146019:
- $node->body .= quick_stats_handbook();
+ $extra = quick_stats_handbook();
return;
case 190833:
- $node->body .= quick_stats_report();
+ $extra = quick_stats_report();
return;
}
+ $node->content['body']['#value'] .= $extra;
}
}
Index: searchquery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/searchquery.module,v
retrieving revision 1.1
diff -u -F^f -r1.1 searchquery.module
--- searchquery.module 1 Jul 2008 21:06:47 -0000 1.1
+++ searchquery.module 1 Jul 2008 22:16:49 -0000
@@ -3,11 +3,13 @@
function searchquery_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page = FALSE) {
if ($op == 'view' && $page) {
+ $extra = '';
switch ($node->nid) {
case 48380:
- $node->body .= search_query_list();
+ $extra = search_query_list();
return;
}
+ $node->content['body']['#value'] .= $extra;
}
}