By jniesen on
Hi,
I created a content type named youtube. A user enters an ID that gets stored in the content type. I need to somehow create
a hook/module that gets called when an administrator publishes content of the youtube type that accesses the youtube API and
adds the ID to the playlist.
I have the youtube API code working. However, I need to figure out how to trigger it when the admin publishes/unpublishes nodes.
How should I go about this? Any help is greatly appreciated.
Thanks
James
Comments
MYSQL snippet
I'd use MYSQL CALL
Not sure what your goal is,
Not sure what your goal is, you could use views to list information about your 'youtube' content type (ie a playlist).
Or if needed you write a module that implements hook_nodeapi() to catch the additions.
Thanks for the Replies
I'm going to try and use the node_api hook. I'll post my problem and solution clearly here once I have it solved.