function theme_galleria_formatter_imagefield_galleria in Galleria 6
Theme CCK imagefield uploads in a Galleria.
File
- ./
galleria.module, line 382 - Turns a node into a Galleria image gallery.
Code
function theme_galleria_formatter_imagefield_galleria($element) {
galleria_includes();
$images = array();
foreach (element_children($element) as $key) {
if ($element[$key]['#item'] != NULL) {
$images[] = (object) array(
'filepath' => $element[$key]['#item']['filepath'],
'filename' => $element[$key]['#item']['filename'],
'description' => $element[$key]['#item']['data']['description'],
'alt' => $element[$key]['#item']['data']['alt'],
);
}
}
return theme('galleria', $images);
}