UI Deploy

Curated, Short, Web UI Dev we Love.

Adding Image Uploads to a Custom Module in Drupal

I recently ran into a situation where I needed a fallback image for pages that didn't have a default header image. To do this I created a custom module that provided a configuration page to upload an image. In retrospect, it would have been cleaner to add this to the theme administration page, but this worked well enough.

view source

Advertisement