Using Ctools, how do I render a managed_file from system form? I'm adding some fields to Drupals site-information form. Textfields and managed_file fields. Images are uploaded there and not in my panel panes edit form.

Now I want to make the additional fields I've added, or just the whole form be rendered in a custom panel content_type. I have no issue getting the textfields themselves using

$block-&gt;content .= filter_xss_admin(variable_get('phonenumber', ''));


however I also need to render my managed_file. How would I go about doing so?
Okay, it's not my day today :D

Here's how to do what you were asking:

// Load the managed file. You need this so you can get the URI.
$file = file_load(YOUR_FILE_ID);
// Generate the output.
$output = theme('image', array(
  'alt' =&gt; t('Your image alt title'),
  'title' =&gt; t('Your image human title'),
  'attributes' =&gt; array('src' =&gt; $file-&gt;uri),
));