### Eclipse Workspace Patch 1.0
#P drupal_test_7
Index: modules/system/page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/page.tpl.php,v
retrieving revision 1.23
diff -u -r1.23 page.tpl.php
--- modules/system/page.tpl.php	18 Jun 2009 21:19:02 -0000	1.23
+++ modules/system/page.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -93,24 +93,24 @@
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
   "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"
-  <?php print $rdf_namespaces; ?>>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php p($language->language); ?>" dir="<?php p($language->dir); ?>"
+  <?php p($rdf_namespaces); ?>>
 
-<head profile="<?php print $grddl_profile; ?>">
-  <title><?php print $head_title; ?></title>
-  <?php print $head; ?>
-  <?php print $styles; ?>
-  <?php print $scripts; ?>
+<head profile="<?php p($grddl_profile); ?>">
+  <title><?php p($head_title); ?></title>
+  <?php p($head); ?>
+  <?php p($styles); ?>
+  <?php p($scripts); ?>
 </head>
-<body class="<?php print $classes; ?>">
+<body class="<?php p($classes); ?>">
 
   <div id="page-wrapper"><div id="page">
 
     <div id="header"><div class="section clearfix">
 
       <?php if ($logo): ?>
-        <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
-          <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
+        <a href="<?php p($front_page); ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
+          <img src="<?php p($logo); ?>" alt="<?php print t('Home'); ?>" />
         </a>
       <?php endif; ?>
 
@@ -119,28 +119,28 @@
           <?php if ($site_name): ?>
             <?php if ($title): ?>
               <div id="site-name"><strong>
-                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
+                <a href="<?php p($front_page); ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php p($site_name); ?></span></a>
               </strong></div>
             <?php else: /* Use h1 when the content title is empty */ ?>
               <h1 id="site-name">
-                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
+                <a href="<?php p($front_page); ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php p($site_name); ?></span></a>
               </h1>
             <?php endif; ?>
           <?php endif; ?>
 
           <?php if ($site_slogan): ?>
-            <div id="site-slogan"><?php print $site_slogan; ?></div>
+            <div id="site-slogan"><?php p($site_slogan); ?></div>
           <?php endif; ?>
         </div> <!-- /#name-and-slogan -->
       <?php endif; ?>
 
       <?php if ($search_box): ?>
-        <div id="search-box"><?php print $search_box; ?></div>
+        <div id="search-box"><?php p($search_box); ?></div>
       <?php endif; ?>
 
       <?php if ($header): ?>
         <div id="header-region" class="region">
-          <?php print $header; ?>
+          <?php p($header); ?>
         </div>
       <?php endif; ?>
 
@@ -153,33 +153,33 @@
     <?php endif; ?>
 
     <?php if ($breadcrumb): ?>
-      <div id="breadcrumb"><?php print $breadcrumb; ?></div>
+      <div id="breadcrumb"><?php p($breadcrumb); ?></div>
     <?php endif; ?>
 
-    <?php print $messages; ?>
+    <?php p($messages); ?>
 
     <div id="main-wrapper"><div id="main" class="clearfix">
 
       <div id="content" class="column"><div class="section">
-        <?php if ($highlight): ?><div id="highlight"><?php print $highlight; ?></div><?php endif; ?>
-        <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
-        <?php if ($tabs): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
-        <?php print $help; ?>
+        <?php if ($highlight): ?><div id="highlight"><?php p($highlight); ?></div><?php endif; ?>
+        <?php if ($title): ?><h1 class="title" id="page-title"><?php p($title); ?></h1><?php endif; ?>
+        <?php if ($tabs): ?><div class="tabs"><?php p($tabs); ?></div><?php endif; ?>
+        <?php p($help); ?>
         <div id="content-area" class="region">
-          <?php print $content; ?>
+          <?php p($content); ?>
         </div> <!-- /#content-area -->
-        <?php print $feed_icons; ?>
+        <?php p($feed_icons); ?>
       </div></div> <!-- /.section, /#content -->
 
       <?php if ($left): ?>
         <div id="sidebar-left" class="column sidebar"><div class="section region">
-          <?php print $left; ?>
+          <?php p($left); ?>
         </div></div> <!-- /.section, /#sidebar-left -->
       <?php endif; ?>
 
       <?php if ($right): ?>
         <div id="sidebar-right" class="column sidebar"><div class="section region">
-          <?php print $right; ?>
+          <?php p($right); ?>
         </div></div> <!-- /.section, /#sidebar-right -->
       <?php endif; ?>
 
@@ -187,12 +187,12 @@
 
     <div id="footer"><div class="section">
       <?php print theme('links', $secondary_menu, array('id' => 'secondary-menu', 'class' => 'links clearfix')); ?>
-      <?php if ($footer): ?><div id="footer-region" class="region"><?php print $footer; ?></div><?php endif; ?>
+      <?php if ($footer): ?><div id="footer-region" class="region"><?php p($footer); ?></div><?php endif; ?>
     </div></div> <!-- /.section, /#footer -->
 
   </div></div> <!-- /#page, /#page-wrapper -->
 
-  <?php print $closure; ?>
+  <?php p($closure); ?>
 
 </body>
 </html>
Index: modules/aggregator/aggregator-feed-source.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator-feed-source.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 aggregator-feed-source.tpl.php
--- modules/aggregator/aggregator-feed-source.tpl.php	15 May 2008 21:27:32 -0000	1.2
+++ modules/aggregator/aggregator-feed-source.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -21,15 +21,15 @@
  */
 ?>
 <div class="feed-source">
-  <?php print $source_icon; ?>
-  <?php print $source_image; ?>
+  <?php p($source_icon); ?>
+  <?php p($source_image); ?>
   <div class="feed-description">
-    <?php print $source_description; ?>
+    <?php p($source_description); ?>
   </div>
   <div class="feed-url">
-    <em><?php print t('URL:'); ?></em> <a href="<?php print $source_url; ?>"><?php print $source_url; ?></a>
+    <em><?php print t('URL:'); ?></em> <a href="<?php p($source_url); ?>"><?php p($source_url); ?></a>
   </div>
   <div class="feed-updated">
-    <em><?php print t('Updated:'); ?></em> <?php print $last_checked; ?>
+    <em><?php print t('Updated:'); ?></em> <?php p($last_checked); ?>
   </div>
 </div>
Index: modules/aggregator/aggregator-wrapper.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator-wrapper.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 aggregator-wrapper.tpl.php
--- modules/aggregator/aggregator-wrapper.tpl.php	15 May 2008 21:27:32 -0000	1.2
+++ modules/aggregator/aggregator-wrapper.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -14,6 +14,6 @@
  */
 ?>
 <div id="aggregator">
-  <?php print $content; ?>
-  <?php print $pager; ?>
+  <?php p($content); ?>
+  <?php p($pager); ?>
 </div>
Index: modules/aggregator/aggregator-summary-items.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator-summary-items.tpl.php,v
retrieving revision 1.3
diff -u -r1.3 aggregator-summary-items.tpl.php
--- modules/aggregator/aggregator-summary-items.tpl.php	3 Aug 2008 16:10:50 -0000	1.3
+++ modules/aggregator/aggregator-summary-items.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -17,8 +17,8 @@
  * @see template_preprocess_aggregator_summary-items()
  */
 ?>
-<h3><?php print $title; ?></h3>
-<?php print $summary_list; ?>
+<h3><?php p($title); ?></h3>
+<?php p($summary_list); ?>
 <div class="links">
-  <a href="<?php print $source_url; ?>"><?php print t('More'); ?></a>
+  <a href="<?php p($source_url); ?>"><?php print t('More'); ?></a>
 </div>
Index: modules/aggregator/aggregator-summary-item.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator-summary-item.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 aggregator-summary-item.tpl.php
--- modules/aggregator/aggregator-summary-item.tpl.php	15 May 2008 21:27:32 -0000	1.2
+++ modules/aggregator/aggregator-summary-item.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -16,9 +16,9 @@
  * @see template_preprocess_aggregator_summary_item()
  */
 ?>
-<a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a>
-<span class="age"><?php print $feed_age; ?></span>
+<a href="<?php p($feed_url); ?>"><?php p($feed_title); ?></a>
+<span class="age"><?php p($feed_age); ?></span>
 
 <?php if ($source_url) : ?>,
-<span class="source"><a href="<?php print $source_url; ?>"><?php print $source_title; ?></a></span>
+<span class="source"><a href="<?php p($source_url); ?>"><?php p($source_title); ?></a></span>
 <?php endif; ?>
Index: modules/aggregator/aggregator-item.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator-item.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 aggregator-item.tpl.php
--- modules/aggregator/aggregator-item.tpl.php	15 May 2008 21:27:32 -0000	1.2
+++ modules/aggregator/aggregator-item.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -21,19 +21,19 @@
 ?>
 <div class="feed-item">
   <h3 class="feed-item-title">
-    <a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a>
+    <a href="<?php p($feed_url); ?>"><?php p($feed_title); ?></a>
   </h3>
 
   <div class="feed-item-meta">
   <?php if ($source_url) : ?>
-    <a href="<?php print $source_url; ?>" class="feed-item-source"><?php print $source_title; ?></a> -
+    <a href="<?php p($source_url); ?>" class="feed-item-source"><?php p($source_title); ?></a> -
   <?php endif; ?>
-    <span class="feed-item-date"><?php print $source_date; ?></span>
+    <span class="feed-item-date"><?php p($source_date); ?></span>
   </div>
 
 <?php if ($content) : ?>
   <div class="feed-item-body">
-    <?php print $content; ?>
+    <?php p($content); ?>
   </div>
 <?php endif; ?>
 
Index: modules/block/block.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block.tpl.php,v
retrieving revision 1.3
diff -u -r1.3 block.tpl.php
--- modules/block/block.tpl.php	12 Jun 2009 09:02:55 -0000	1.3
+++ modules/block/block.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -35,12 +35,12 @@
  * @see template_process()
  */
 ?>
-<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>">
+<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php p($classes); ?>">
 <?php if ($block->subject): ?>
-  <h2><?php print $block->subject ?></h2>
+  <h2><?php p($block->subject); ?></h2>
 <?php endif;?>
 
   <div class="content">
-    <?php print $content ?>
+    <?php p($content); ?>
   </div>
 </div>
Index: modules/block/block-admin-display-form.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block-admin-display-form.tpl.php,v
retrieving revision 1.6
diff -u -r1.6 block-admin-display-form.tpl.php
--- modules/block/block-admin-display-form.tpl.php	15 May 2008 21:30:02 -0000	1.6
+++ modules/block/block-admin-display-form.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -45,19 +45,19 @@
   <tbody>
     <?php $row = 0; ?>
     <?php foreach ($block_regions as $region => $title): ?>
-      <tr class="region region-<?php print $region?>">
-        <td colspan="5" class="region"><?php print $title; ?></td>
+      <tr class="region region-<?php p($region); ?>">
+        <td colspan="5" class="region"><?php p($title); ?></td>
       </tr>
-      <tr class="region-message region-<?php print $region?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
+      <tr class="region-message region-<?php p($region); ?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
         <td colspan="5"><em><?php print t('No blocks in this region'); ?></em></td>
       </tr>
       <?php foreach ($block_listing[$region] as $delta => $data): ?>
       <tr class="draggable <?php print $row % 2 == 0 ? 'odd' : 'even'; ?><?php print $data->row_class ? ' ' . $data->row_class : ''; ?>">
-        <td class="block"><?php print $data->block_title; ?></td>
-        <td><?php print $data->region_select; ?></td>
-        <td><?php print $data->weight_select; ?></td>
-        <td><?php print $data->configure_link; ?></td>
-        <td><?php print $data->delete_link; ?></td>
+        <td class="block"><?php p($data->block_title); ?></td>
+        <td><?php p($data->region_select); ?></td>
+        <td><?php p($data->weight_select); ?></td>
+        <td><?php p($data->configure_link); ?></td>
+        <td><?php p($data->delete_link); ?></td>
       </tr>
       <?php $row++; ?>
       <?php endforeach; ?>
@@ -65,4 +65,4 @@
   </tbody>
 </table>
 
-<?php print $form_submit; ?>
+<?php p($form_submit); ?>
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.925
diff -u -r1.925 common.inc
--- includes/common.inc	18 Jun 2009 21:19:01 -0000	1.925
+++ includes/common.inc	1 Jul 2009 00:37:04 -0000
@@ -3748,8 +3748,9 @@
 }
 
 /**
- * Render and print an element.
+ * Print an element, rendering it first if necessary.
  *
+ * TODO
  * This function renders an element using drupal_render() and then prints out
  * the rendered output. The top level element is always rendered and printed
  * even if hide() had been previously used on it.
@@ -3762,20 +3763,25 @@
  * @see show()
  * @see hide()
  */
-function render(&$element) {
+function p(&$element, $return = FALSE) {
+  $output = $element;
   if (is_array($element)) {
     show($element);
-    print drupal_render($element);
+    $output = drupal_render($element);
+  }
+
+  if ($return) {
+    return $output;
   }
   else {
-    print $element;
+    print $output;
   }
 }
 
 /**
  * Hide an element from later rendering.
  *
- * @see render()
+ * @see p()
  * @see show()
  */
 function hide(&$element) {
@@ -3786,10 +3792,10 @@
 /**
  * Show a hidden or already printed element from later rendering.
  *
- * Alternatively, render($element) could be used which automatically shows the
+ * Alternatively, p($element) could be used which automatically shows the
  * element while rendering and printing it.
  *
- * @see render()
+ * @see p()
  * @see hide()
  */
 function show(&$element) {
Index: themes/garland/node.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/node.tpl.php,v
retrieving revision 1.11
diff -u -r1.11 node.tpl.php
--- themes/garland/node.tpl.php	18 Jun 2009 21:19:02 -0000	1.11
+++ themes/garland/node.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -13,21 +13,21 @@
   <?php endif; ?>
 
   <div class="content clearfix">
-    <?php hide($content['links']); hide($content['comments']); render($content); ?>
+    <?php hide($content['links']); hide($content['comments']); p($content); ?>
   </div>
 
   <div class="clearfix">
     <div class="meta">
     <?php if (!empty($content['links']['terms'])): ?>
-      <div class="terms"><?php render($content['links']['terms']) ?></div>
+      <div class="terms"><?php p($content['links']['terms']) ?></div>
     <?php endif;?>
     </div>
 
     <?php if (!empty($content['links'])): ?>
-      <div class="links"><?php render($content['links']) ?></div>
+      <div class="links"><?php p($content['links']) ?></div>
     <?php endif; ?>
 
-    <?php render($content['comments']); ?>
+    <?php p($content['comments']); ?>
 
   </div>
 
Index: modules/node/node.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.tpl.php,v
retrieving revision 1.16
diff -u -r1.16 node.tpl.php
--- modules/node/node.tpl.php	30 Jun 2009 17:18:10 -0000	1.16
+++ modules/node/node.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -68,21 +68,21 @@
  * @see template_process()
  */
 ?>
-<div id="node-<?php print $node->nid; ?>" class="<?php print $classes ?> clearfix">
+<div id="node-<?php p($node->nid); ?>" class="<?php p($classes); ?> clearfix">
 
-<?php print $picture ?>
+<?php p($picture); ?>
 
 <?php if (!$page): ?>
-  <h2><a href="<?php print $node_url ?>"><?php print $title ?></a></h2>
+  <h2><a href="<?php p($node_url); ?>"><?php p($title); ?></a></h2>
 <?php endif; ?>
 
   <div class="meta">
   <?php if ($submitted): ?>
-    <span class="submitted"><?php print $submitted ?></span>
+    <span class="submitted"><?php p($submitted); ?></span>
   <?php endif; ?>
 
   <?php if (!empty($content['links']['terms'])): ?>
-    <div class="terms terms-inline"><?php render($content['links']['terms']) ?></div>
+    <div class="terms terms-inline"><?php p($content['links']['terms']) ?></div>
   <?php endif;?>
   </div>
 
@@ -91,12 +91,12 @@
       // We hide the comments and links now so that we can render them later.
       hide($content['comments']);
       hide($content['links']);
-      render($content);
+      p($content);
     ?>
   </div>
 
-  <?php render($content['links']); ?>
+  <?php p($content['links']); ?>
 
-  <?php render($content['comments']); ?>
+  <?php p($content['comments']); ?>
 
 </div>
Index: modules/book/book-all-books-block.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book-all-books-block.tpl.php,v
retrieving revision 1.3
diff -u -r1.3 book-all-books-block.tpl.php
--- modules/book/book-all-books-block.tpl.php	8 Apr 2009 03:23:46 -0000	1.3
+++ modules/book/book-all-books-block.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -14,7 +14,7 @@
  */
 ?>
 <?php foreach ($book_menus as $book_id => $menu) : ?>
-<div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
-  <?php print $menu; ?>
+<div id="book-block-menu-<?php p($book_id); ?>" class="book-block-menu">
+  <?php p($menu); ?>
 </div>
 <?php endforeach; ?>
Index: modules/book/book-export-html.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book-export-html.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 book-export-html.tpl.php
--- modules/book/book-export-html.tpl.php	15 May 2008 21:19:24 -0000	1.2
+++ modules/book/book-export-html.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -18,11 +18,11 @@
  */
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php p($language->language); ?>" xml:lang="<?php p($language->language); ?>">
   <head>
-    <title><?php print $title; ?></title>
-    <?php print $head; ?>
-    <base href="<?php print $base_url; ?>" />
+    <title><?php p($title); ?></title>
+    <?php p($head); ?>
+    <base href="<?php p($base_url); ?>" />
     <link type="text/css" rel="stylesheet" href="misc/print.css" />
     <?php if ($language_rtl): ?>
       <link type="text/css" rel="stylesheet" href="misc/print-rtl.css" />
@@ -42,10 +42,10 @@
     $div_close = '';
     ?>
     <?php for ($i = 1; $i < $depth; $i++) : ?>
-      <div class="section-<?php print $i; ?>">
+      <div class="section-<?php p($i); ?>">
       <?php $div_close .= '</div>'; ?>
     <?php endfor; ?>
-    <?php print $contents; ?>
-    <?php print $div_close; ?>
+    <?php p($contents); ?>
+    <?php p($div_close); ?>
   </body>
 </html>
Index: modules/book/book-node-export-html.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book-node-export-html.tpl.php,v
retrieving revision 1.2
diff -u -r1.2 book-node-export-html.tpl.php
--- modules/book/book-node-export-html.tpl.php	15 May 2008 21:19:24 -0000	1.2
+++ modules/book/book-node-export-html.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -18,8 +18,8 @@
  * @see template_preprocess_book_node_export_html()
  */
 ?>
-<div id="node-<?php print $node->nid; ?>" class="section-<?php print $depth; ?>">
-  <h1 class="book-heading"><?php print $title; ?></h1>
-  <?php print $content; ?>
-  <?php print $children; ?>
+<div id="node-<?php p($node->nid); ?>" class="section-<?php p($depth); ?>">
+  <h1 class="book-heading"><?php p($title); ?></h1>
+  <?php p($content); ?>
+  <?php p($children); ?>
 </div>
Index: modules/user/user-profile.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user-profile.tpl.php,v
retrieving revision 1.9
diff -u -r1.9 user-profile.tpl.php
--- modules/user/user-profile.tpl.php	24 Jun 2009 18:16:38 -0000	1.9
+++ modules/user/user-profile.tpl.php	1 Jul 2009 00:37:04 -0000
@@ -28,5 +28,5 @@
  */
 ?>
 <div class="profile">
-  <?php render($user_profile); ?>
+  <?php p($user_profile); ?>
 </div>
