In Drupal 7, I am trying to put an image field to allow an image to be uploaded to the theme settings.
I am using managed file from the form API to do this. Here is my code:
$form['footer']['footer_logo'] = array( '#title' => t('Image'), '#type' => 'managed_file', '#description' => t('The uploaded image will be displayed on this page using the image style choosen below.'), '#default_value' => variable_get('footer_logo', ''), '#upload_location' => 'public://footer_logo/', );
When I call the image using
theme_get_setting('footer_logo'), I just get a set of numbers. How can I get the file path of the image instead? Also, is there away to pass the image through image cache settings.