function comment_upload_filefield_paths_get_fields in File (Field) Paths 6
Same name and namespace in other branches
- 5 modules/comment_upload.inc \comment_upload_filefield_paths_get_fields()
Implements hook_filefield_paths_get_fields().
File
- modules/
comment_upload.inc, line 50 - Provides FileField Paths integration with the Comment Upload module.
Code
function comment_upload_filefield_paths_get_fields(&$node, &$ffp) {
if (is_object($node) && isset($node->cid) && isset($node->files)) {
foreach ($node->files as &$file) {
$ffp['#files'][] = array(
'field' => &$file,
'module' => 'comment_upload',
'name' => 'comment_upload',
'new' => $file['new'],
);
$ffp['#types']['comment_upload'] = TRUE;
}
}
}