Another example:
$form['file'] = array(
'#type' => 'media',
'#ti...

Contribution Date
Technology
Contribution Project
Contribution Details

Another example:

$form['file'] = array( '#type' => 'media', '#title' => t('Choose a file'), '#description' => t('Choose a file'), '#tree' => TRUE, '#input' => TRUE, '#media_options' => array( 'global' => array( 'types' => array( 'image' => 'image', 'video' => 'video', 'audio' => 'audio', 'document' => 'document', ), 'schemes' => array( 'public' => 'public', ), 'enabledPlugins' => array( 'upload' => 'upload', ), ), ), );
Issue Status
closed
Contribution Author
Files count
0
Patches count
0