function theme_brightcove_field_browse_items in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.7 theme.inc \theme_brightcove_field_browse_items()
- 7.2 brightcove_field/theme.inc \theme_brightcove_field_browse_items()
- 7.4 brightcove_field/theme.inc \theme_brightcove_field_browse_items()
- 7.5 brightcove_field/theme.inc \theme_brightcove_field_browse_items()
- 7.6 theme.inc \theme_brightcove_field_browse_items()
Theme callback for Brightcove browse table.
Parameters
$variables: Array of video items.
Return value
Themed browse table.
1 theme call to theme_brightcove_field_browse_items()
- brightcove_field_browse in brightcove_field/
brightcove_field.browse.inc - This function is a callback for modalframe window, providing an access to browse videos.
File
- brightcove_field/
theme.inc, line 47 - Theme funciton for the module.
Code
function theme_brightcove_field_browse_items($variables) {
$rowcount = 0;
$activerow = 0;
$rows = array();
foreach ($variables['items'] as $item) {
// TODO test these after field port is stable
$themed = theme('brightcove_field_browse_item', array(
'item' => $item,
));
$rowcount++;
if ($rowcount == 4) {
$activerow++;
$rowcount = 1;
}
$rows[$activerow][] = $themed;
}
// TODO test these after field port is stable
return theme('table', array(
'header' => array(),
'rows' => $rows,
));
}