function file_aliases_filefield_paths_field_settings in File Aliases 5
Same name and namespace in other branches
- 6 file_aliases.module \file_aliases_filefield_paths_field_settings()
- 7 modules/filefield_paths.inc \file_aliases_filefield_paths_field_settings()
Implementation of hook_filefield_paths_field_settings().
File
- ./
file_aliases.module, line 23
Code
function file_aliases_filefield_paths_field_settings() {
return array(
'file_alias' => array(
'title' => 'File alias',
'sql' => 'filealias',
'data' => array(
'display' => 'file_alias_display',
),
'form' => array(
'file_alias' => array(
'#type' => 'textfield',
'#title' => t('File alias'),
'#default_value' => '',
),
'file_alias_display' => array(
'#type' => 'checkbox',
'#title' => t('Display alias'),
'#description' => t('If checked, the file alias will be displayed instead of the file') . '.',
'#default_value' => 0,
'#weight' => 3,
),
),
),
);
}