Get Media Module to Work with Drupal 7 Beta 3


On the project page for the Media module it says that its betas corresponds with the Drupal 7 core betas. I have been toying with the new Media module beta and tested it with both Drupal 7 beta 2 and 3. It installed fine in both, but the settings pages for the media types didn't work at all. After filing two issues about that, the problems has now been sorted.

Below you'll find information about how to patch Media module beta 2 to work with Drupal 7.

To get Media Module Settings to Work with Drupal 7 beta 2/3

The first problem was that any of the Media Type operations simply redirected to the Structure administration page. THis was due to that the paths had changed, but not been changed at all places in the code. To fix that, apply this patch to the media module. That will change the missing paths in the module code so the correct settings pages are opening.

Unfortunately it only fixed the Manage Fields/Display pages for each type. The Settings page simply gave two warnings an no settings. This is easily fixed as well and you can find instructions about that starting from this comment in the issue queue.

After applying these changes you also need to clear the caches to make the settings work.

That's all, now you can start playing around with the Media module in Drupal 7 beta 2 and 3.