You are here

function filefield_paths_filefield_paths_field_settings in File (Field) Paths 6

Same name and namespace in other branches
  1. 8 filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
  2. 5 filefield_paths.module \filefield_paths_filefield_paths_field_settings()
  3. 6.2 modules/filefield_paths.inc \filefield_paths_filefield_paths_field_settings()
  4. 7 modules/filefield_paths.inc \filefield_paths_filefield_paths_field_settings()

Implements hook_filefield_paths_field_settings().

File

modules/filefield_paths.inc, line 10
FileField Paths module integration.

Code

function filefield_paths_filefield_paths_field_settings() {
  return array(
    'file_path' => array(
      'title' => 'File path',
      'sql' => 'filepath',
      'form' => array(
        'file_path' => array(
          '#maxlength' => 512,
          '#size' => 128,
        ),
      ),
    ),
    '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]',
        ),
      ),
    ),
  );
}