function theme_rotor_gallery_view in Rotor Banner 5
Display the nodes of a view as an image gallery.
File
- ./
views.inc, line 26 - Provides views integration for Rotor.
Code
function theme_rotor_gallery_view($view, $nodes, $type) {
drupal_add_css(drupal_get_path('module', 'rotor') . '/rotor.css');
_rotor_setup_js();
$items = array();
foreach ($nodes as $node) {
$actual_node = node_load($node->nid);
$items[] = (object) array(
'title' => $node->title,
'body' => node_view($actual_node, FALSE, FALSE, FALSE),
'format' => $actual_node->format,
);
}
$content = theme_rotor_block($items);
return $content;
}