function tb_megamenu_animation_options in The Better Mega Menu 7
1 call to tb_megamenu_animation_options()
File
- ./
tb_megamenu.functions.inc, line 495
Code
function tb_megamenu_animation_options($block_config) {
$animations = array(
'none' => t('None'),
'fading' => t('Fading'),
'slide' => t('Slide'),
'zoom' => t('Zoom'),
'elastic' => t('Elastic'),
);
$options = array();
foreach ($animations as $value => $title) {
if ($value == $block_config['animation']) {
$options[] = '<option value="' . $value . '" selected="selected">' . $title . '</option>';
}
else {
$options[] = '<option value="' . $value . '">' . $title . '</option>';
}
}
return implode("\n", $options);
}