title: How do I alter the #weight of the content generated by the upload.module?
body: <p>On my Drupal powered website, I want to list available downloads at the top of a node page (within a narrow float:right <code>&lt;div&gt;</code>), not at the bottom where they normally appear.</p>
  
  <p>Within my theme, I've overridden the <code>theme_upload_attachments()</code> function to generate a <code>&lt;div&gt;</code> of width 40%, but this is showing up at the bottom of the page.</p>
  
  <p>Within the <code>upload.module</code> file is code that controls where the attachments are listed on the page:</p>
  
  <pre><code>// function upload_nodeapi(), line #284 of upload.module
  $node-&gt;content['files'] = array(
      '#value' =&gt; theme('upload_attachments', $node-&gt;files),
      '#weight' =&gt; 50,
  );
  </code></pre>
  
  <p>If I manually hack this #weight to -1, my custom list of attachments shows where I want, floating at the righthand side of the top of the content area.</p>
  
  <p>However, I don't want to manually hack the core file <code>upload.module</code>, as my changes will be lost next time I apply an upgrade (say, for a security patch).</p>
  
  <p>How/Where do I modify the #weight of <code>content['files']</code> within my theme code?<br>
  Or, am I going about this the wrong way?</p>