Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: kkaefer commentedI don't think this is complicated enough to be included in the module.
Comment #2
kkaefer CreditAttribution: kkaefer commentedOk, I decided to commit this since there's apparently a need for it. Thanks for the patch.