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

jhedstrom’s picture

Status: Needs review » Fixed

Thanks skhot. Fixed in dev.

Status: Fixed » Closed (fixed)
Issue tags: -call-time, -pass-by-reference, -deprecated

Automatically closed -- issue fixed for 2 weeks with no activity.