function start_attach_gallery_to_post($post_id) { //Clear any foogallery css that the post might need to include delete_post_meta($post_id, FOOGALLERY_META_POST_USAGE_CSS); //create an instance of the template loader that we will use to find CSS files that the different FooGalleries will require to be loaded $template_loader = new FooGallery_Template_Loader(); $this->_locator = $template_loader->create_locator_instance(); }