You are here

function filefield_widget_info in FileField 6.3

Same name and namespace in other branches
  1. 5.2 filefield.module \filefield_widget_info()
  2. 5 filefield.module \filefield_widget_info()
  3. 6.2 filefield.module \filefield_widget_info()

Implementation of CCK's hook_widget_info().

File

./filefield.module, line 433
FileField: Defines a CCK file field type.

Code

function filefield_widget_info() {
  return array(
    'filefield_widget' => array(
      'label' => t('File Upload'),
      'field types' => array(
        'filefield',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_CUSTOM,
      ),
      'description' => t('A plain file upload widget.'),
      'file_extensions' => 'txt',
    ),
  );
}