Greetings,
In many cases it is very convenient to have a function that can render a slideshow from a corresponding slideshow node to display it somewhere else (on the static page or in the block). We propose to add the following API function to your module:
function slideshow_render($nid) {
$node = node_load($nid);
slideshow_view($node);
return theme('slideshow', $node->content['slideshow']);
}
Your thoughts? Thank you.
Comments
Comment #1
kkaefer commentedI don't think this is complicated enough to be included in the module.
Comment #2
kkaefer commentedOk, I decided to commit this since there's apparently a need for it. Thanks for the patch.