开发者

How to programmatically add new nodequeue?

I'm writing an install file for a custom module, that needs to create some new nodequeues. But a drupal and google search are so far turning up empty. Anyone know how to do this?

Dru开发者_如何转开发pal 6


The closet thing you come to a API function to save nodes is nodequeue_save, but all you really need to do, is to insert some data to the {nodequeue_queue} table. You can do it yourself with SQL or use the function, but the result will be the same.

You should remember to add the nodequeue module as a dependency in your module's info file and check if it's installed before running your stuff in hook_install.


Some API documentation might help you on the road? http://api.lullabot.com/file/contrib/nodequeue/nodequeue.module

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜