You are here

function filefield_content_generate in FileField 6.3

Implementation of CCK's hook_content_generate(). Used by generate.module.

File

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

Code

function filefield_content_generate($node, $field) {
  module_load_include('inc', 'filefield', 'filefield.devel');
  if (content_handle('widget', 'multiple values', $field) == CONTENT_HANDLE_MODULE) {
    return content_devel_multiple('_filefield_content_generate', $node, $field);
  }
  else {
    return _filefield_content_generate($node, $field);
  }
}