filefield.inc in Custom Formatters 6
Provides Custom Formatters integration with the FileField module.
File
includes/filefield.incView source
<?php
/**
* @file
* Provides Custom Formatters integration with the FileField module.
*/
/**
* Implements hook_custom_formatters_field_prepare().
*/
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',
),
);
}
/**
* Implements hook_custom_formatters_field_tokens().
*/
function filefield_custom_formatters_filefield_tokens() {
return array(
'filefield_paths',
'file_aliases',
);
}
Functions
Name | Description |
---|---|
filefield_custom_formatters_filefield_prepare | Implements hook_custom_formatters_field_prepare(). |
filefield_custom_formatters_filefield_tokens | Implements hook_custom_formatters_field_tokens(). |