function filefield_paths_filefield_paths_field_settings in File (Field) Paths 5
Same name and namespace in other branches
- 8 filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
- 6.2 modules/filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
- 6 modules/filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
- 7 modules/filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
Implementation of hook_filefield_paths_field_settings().
File
- ./
filefield_paths.module, line 11 - Adds extra functionality to FileFields Path settings.
Code
function filefield_paths_filefield_paths_field_settings() {
return array(
'file_path' => array(
'title' => 'File path',
'sql' => 'filepath',
),
'file_name' => array(
'title' => 'File name',
'sql' => 'filename',
'form' => array(
'file_name' => array(
'#type' => 'textfield',
'#title' => t('File name'),
'#default_value' => '[filefield-onlyname-original].[filefield-extension-original]',
),
),
),
);
}