-
Notifications
You must be signed in to change notification settings - Fork 3
Developer Guide
Bryan Hazelbaker edited this page Jun 13, 2013
·
24 revisions
Convert file can be initiated while using the Form API by specifying the
custom element type convertfile_file
$form['test_conversion'] = array(
'#type' => 'convertfile_file',
'#title' => 'Test file conversion',
'#convertfile_provider' => 'cf_googledrive',
'#convertfile_format' => 'pdf',
'#description' => 'Test out the Form API element type convertfile_file by ' .
'specifying the googledrive provider and pdf format',
);