function tb_megamenu_style_options in The Better Mega Menu 7
1 call to tb_megamenu_style_options()
File
- ./
tb_megamenu.functions.inc, line 515
Code
function tb_megamenu_style_options($block_config) {
$styles = array(
'' => t('Default'),
'black' => t('Black'),
'blue' => t('Blue'),
'green' => t('Green'),
);
$options = array();
foreach ($styles as $value => $title) {
if ($value == $block_config['style']) {
$options[] = '<option value="' . $value . '" selected="selected">' . $title . '</option>';
}
else {
$options[] = '<option value="' . $value . '">' . $title . '</option>';
}
}
return implode("\n", $options);
}