function scald_render_multiple in Scald: Media Management made easy 7
Render multiple atoms.
@codingStandardsIgnoreStart
Parameters
array $atoms: An array of Scald Atoms.
string $context: A valid Scald Context slug (machine name).
Return value
array A renderable array containing the representations of the atoms in the choosen context.
1 string reference to 'scald_render_multiple'
- scald_entity_info in ./
scald.module - Implements hook_entity_info().
File
- ./
scald.module, line 1483 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_render_multiple($atoms, $context) {
// @codingStandardsIgnoreEnd
$view = array();
foreach ($atoms as $atom) {
$view['scald_atom'][$atom->sid] = array(
'#markup' => scald_render($atom, $context),
);
}
return $view;
}