40a41,43 > > // I moved this code into a separate function to be able to get the blockthemes from other modules > /* 51a55,57 > */ > > $options = blocktheme_get_blockthemes(); 162a169,182 > > > // Get the definde blockthemes and return a list to be used in hook_form_alter or other modules > function blocktheme_get_blockthemes() { > $blockthemes = variable_get('blocktheme_themes', ''); > $_sets = explode("\n", $blockthemes); > $options[] = t('<-- None -->'); > > foreach ($_sets as $key => $value) { > $set = explode('|', $value); > $options[$set[0]] = $set[1]; > } > return $options; > }