get_cur_post_type() gets the current post type in the WordPress Admin http://themergency.com/wordpress-tip-get-post-type-in-admin/