function scald_file_scald_transcoders in Scald File Provider 7
Implements hook_scald_transcoders().
File
- ./
scald_file.module, line 380 - Scald File is a Scald Atom Provider for Files.
Code
function scald_file_scald_transcoders() {
$transcoders = array();
if (module_exists('pdf')) {
$info = module_invoke_all('field_formatter_info');
foreach ($info as $name => $formatter) {
if (!preg_match('/^pdf_/', $name)) {
continue;
}
$transcoders[$name] = array(
'title' => $formatter['label'],
'description' => $formatter['label'],
'formats' => array(
'file' => 'passthrough',
),
);
}
}
return $transcoders;
}