Closed (fixed)
Project:
Embedded Media Field
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2007 at 08:08 UTC
Updated:
3 Nov 2007 at 16:41 UTC
how to insert directly to field_video??
i use this php code. but it's not working.
$url="http://www.youtube.com/watch?v=xxxxxxxx";
.
.
.
$node->body = $feed_item->description;
$node->teaser = node_teaser($node->body);
$node->field_video = $url;
.
.
node_save($node);
Comments
Comment #1
dindon commentedanyone??
which hook should be called to process embed value?
Comment #2
garamvideos commented$node->field_video[0]['embed'] = $url
should do the trick
Comment #3
alex ua commented