Community Documentation

Media: Callback form

Last updated January 16, 2009. Created by aaron on January 11, 2009.
Edited by arthurf. Log in to edit this page.

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

Specifically, the callback form for formatters expects data to be returned in an ordered format. This allows a module to define the formatter form that is displayed once a resource has been chosen. Your form should utilize the following variables: my_module_format_form($node_type, $field, $file_extension).

Return a Drupal form array.

Page status

About this page

Drupal version
Drupal 6.x, Drupal 7.x

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here