Closed (outdated)
Project:
Nodecarousel
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2009 at 14:08 UTC
Updated:
26 Jul 2022 at 15:34 UTC
Jump to comment: Most recent
Comments
Comment #1
jcfiala commentedRight, so, the hook_nodecarousel is invoked when you want to return your nodes as you've picked them.
The basic idea is that you put hook_nodecarousel in a module that you're writing, not the theme.
Let's say that you've created the module misc_module, which includes a misc_module.info and misc_module.module file, right? We're going to write a simple query that returns the most recent blog nodes for the 'test_nodecarousel' nodecarousel. (That's the nodecarousel name - since you can have multiple nodecarousels on a site, they have different names.) The misc_module.module file would contain:
Yes, if you were doing the most recent blog items, you would use the other settings, but I needed a simple example.
Comment #2
avpadernoI am closing this issue, since Drupal 6 isn't supported anymore.