When I create a media field to be able to upload images for a content, I would like to display only images, but all media type will be shown.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

k.dani’s picture

I found the source of the problem. The module compare array keys, when it want to get the local or/and remote wrappers being in used to add conditions to the query in media_browser_list() in media.browser.inc file. I found that the array we get from the url is keyed by a serial number, not with the value we want.

A path is attached to solve this.

Chris Matthews’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team