Nice thing is, that this way I'm able to use multiple options devided maybe by a ";" .
[tag="opt1;opt2"]value[/tag]
PHP Code:
$tag_list['option']['XYZ'] = array(
'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_XYZ_callback',
'strip_empty' => true
);
if(!function_exists('handle_bbcode_XYZ_callback'))
{
function handle_bbcode_XYZ_callback(&$parsed, $value, $option)
{
$split = explode(";", $option);
return $split[0]."<br />".$split[1];
}
}
Very handy if you need some more variables for a function.
cu
Gargi