function filefield_custom_formatters_filefield_prepare in Custom Formatters 6
Implements hook_custom_formatters_field_prepare().
File
- includes/
filefield.inc, line 10 - Provides Custom Formatters integration with the FileField module.
Code
function filefield_custom_formatters_filefield_prepare() {
file_check_directory($path = file_directory_path() . '/._tmp.custom_formatters', TRUE);
return array(
'widget' => array(
'file_extensions' => 'jpg png',
'file_path' => '._tmp.custom_formatters',
),
);
}