php basics, I see
Thanks for that hint! Also works with the if / else and so on.
PHP Code:
$tag_list['option']['count'] = array(
'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_count_callback',
'strip_empty' => true
);
if(!function_exists('handle_bbcode_count_callback'))
{
function handle_bbcode_count_callback(&$parsed, $value, $option)
{
if ( $option > 5 )
{
$result = 7 + $option;
return "Hello this is ".$value.",<br />my number is ".$result;
}
else
{
$result = 1 + $option;
return "Hello this is ".$value.",<br />my number is ".$result;
}
}
}
Now I just have to find out how to use otpion and no_option in order to get two different outputs.
cu
Gargi