private function setSlideshowRenditions(\Zend_Form $form)
{
$renditions = $this->_helper->service('image.rendition')->getOptions();
if (array_key_exists(self::SLIDESHOW_RENDITION, $renditions)) {
$renditions = array(self::SLIDESHOW_RENDITION => $renditions[self::SLIDESHOW_RENDITION]);
}
if (count($renditions) === 1) {
$form->removeElement('rendition');
$form->addElement('hidden', 'rendition', array('value' => array_pop(array_keys($renditions))));
} else {
$form->rendition->setMultiOptions($renditions);
}
}