Closed (fixed)
Project:
Slideshow
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2008 at 13:08 UTC
Updated:
19 Apr 2009 at 13:00 UTC
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.