I have a field in my View that outputs a YouTube URL (eg. http://www.youtube.com/watch?v=rF1X12PE6PY)
I want to output just the ID part (ie. rF1X12PE6PY)
So I made a module with a function that takes the full URL and returns just the ID. Then in my views-views-fields.tpl.php template I call the function:
<?php print youtube_id_get($fields['url']->content); ?>
Now this works fine, but something tells me it's not good Drupal practice?
Will this screw up Views performance/caching? Should I create a custom Views filter instead (still learning about such things)?