function funcname($m_input){ $m_input is an array: $m_input[1] is the info passed from the Markup if(@strpos($m_input[1], ' ')){ $input_array = explode(' ', $m_input[1]); } }
Markup( 'call_func', 'style', '/\\(:call_func(.*?):\\)/', "funcname" ); ## Notice the function call does not pass the parameters, they will pass automatically. ## Notice the double-quotes around the function name
(:PlayFile /mimir/media/papasongs/ASailorsPrayer.mp3:)