Create videoplayer shortcode module for drupal 7 I have a custom player I made (Using flowplayer) and would like to make a short code for the id of that player. For example, when the user pastes [myplayer 12345], it will display that player with the appropriate video. 

Can anyone point tell me how to do this in drupal?
I know in wordpress it's simple like this: 

add_shortcode('myplayer','myplayer_video');

    function myplayer_video($attr) {


    $output = '&lt;iframe width="448" height="282" src="http://mysite.com/embed/' . $attr[0] . '" frameborder="0" allowfullscreen="false"&gt;&lt;/iframe&gt;';

    return $output; 
}


My understanding is I need to make a module and I have looked at many tuts on making modules in drupal, but none on how to access the content field and diplay something or php code.
I'd look at the Custom Filter module.