function file_field_info

Implements hook_field_info().

File

modules/file/file.field.inc, line 11

Code

function file_field_info() {
    return array(
        'file' => array(
            'label' => t('File'),
            'description' => t('This field stores the ID of a file as an integer value.'),
            'settings' => array(
                'display_field' => 0,
                'display_default' => 0,
                'uri_scheme' => variable_get('file_default_scheme', 'public'),
            ),
            'instance_settings' => array(
                'file_extensions' => 'txt',
                'file_directory' => '[date:custom:Y]-[date:custom:m]',
                'max_filesize' => '',
                'description_field' => 0,
            ),
            'default_widget' => 'file_generic',
            'default_formatter' => 'file_default',
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.