function media_upload_formatter_form in D7 Media 6
Format Media Upload form
Parameters
string $node_type:
string $field:
string $file_extension:
string $uri:
Return value
array Return a form array.
1 string reference to 'media_upload_formatter_form'
- media_upload_media_register in media_upload/
media_upload.module - Implementation of hook_media_register
File
- media_upload/
media_upload.module, line 125 - This module provides integration for Drupal's upload module with the Media module
Code
function media_upload_formatter_form($node_type, $field, $file_extension, $uri) {
if ($uri) {
$form['display'] = array(
'#type' => 'item',
'#value' => l($uri, $uri),
);
$form['list'] = array(
'#type' => 'checkbox',
'#title' => 'List file',
'#default_value' => TRUE,
);
}
return $form;
}