You could just use get_post_meta() there, instead of creating a wrapper function. You also don't seem to implement the second argument even though you use it, but that's easy enough -- either echo get_post_meta(), or don't. You may also want to look into the get_post_custom_* functions: http://codex.wordpress.org/Custom_Fields.