function parseTypoScript($typoscript) { if (!$typoscript) { return false; } if (is_array($typoscript)) { $typoscript = tx_smarty_div::makeTypoScriptFromArray($typoscript); } $ts_parser = t3lib_div::makeInstance('t3lib_tsparser'); $ts_parser->parse($typoscript); return $ts_parser->setup ? $ts_parser->setup : false; }