Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.