The code looked like this:
* Implementation of CCK's hook_field().
*/
function video_upload_field($op, $node, $field, &$items, $teaser, $page) {
// Nothing different from FileField, so simply do what FileField does.
$return = filefield_field($op, $node, $field, &$items, $teaser, $page);
return $return;
}
I took out the ampersands (in front of $item) according to the comments in this article and everything seems to work fine:
http://drupal.org/node/508320
* Implementation of CCK's hook_field().
*/
function video_upload_field($op, $node, $field, $items, $teaser, $page) {
// Nothing different from FileField, so simply do what FileField does.
$return = filefield_field($op, $node, $field, $items, $teaser, $page);
return $return;
}
This might be helpful for someone else.
Comments
Comment #1
jhedstromThanks skhot. Fixed in dev.