Media Developer Documentation (Outdated)

At present, we have no developer documentation, however we will be fleshing this out as it solidifies. Most of media is using existing Drupal APIs like the field and entity APIs.

Child links of this page contain outdated information.

Container data return

For modules which implement container functionality (the ability to create a list of files for a user to select from), data needs to be

Media Module: Internal Flow

This documentation is primarily intended for contributors of Media module core, but may be useful for Media module developers who want to

Media Types

Media types is a bundle for media entities. You can add a new media type via the media_type_save() function.

Media: Callback form

In your hook_media_register you declare callbacks for each of the functions that are needed by the registered type.

Media: Callback resource

In your hook_media_register you declare callbacks for each of the functions that are needed by the registered type.

Media: hook_media_register

hook_media_register() is used to register functionality with the media module. It provides modules with the ability to declare resource

Resources & Stream Wrappers

An important element of the new Media module is the concept of Resources. Resources are anything your website can reference that has a

Guide maintainers

aaron's picture