It was a child's cartoon movie made back around the 2000's. The main character may be a stuffed horse. There were elephants colored purple and blue that may have lived in a library, or something like it. There is a scene in the movie where the characters were on a roller coaster or a minecart trying to rescue their friend. At the end of the movie they sing a song and the elephants keep shouting "CAKE".