Skip to content
Bryan Hazelbaker edited this page Jun 13, 2013 · 24 revisions

Form API Element

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',
);
Clone this wiki locally