The wrestlers of WWE are going back in time to Bedrock.

WWE Studios has teamed with Warner Bros. to co-produce a “Flintstones” animated movie that will be released direct-to-homevideo platforms in early 2015.

Toon will feature Vince McMahon, John Cena, CM Punk and other stars on WWE’s talent roster as themselves – with a Flintstones twist (Vince McMagma, John Cenastone, CM Punkrock – as Fred, Barney and friends attend the first WWE main event.

SEE ALSO: WWE’s Promo Mania

The film will be produced by Warner Bros. Animation and WWE Studios.

Warner Home Video will distrib the film across all home video platforms, with WWE promoting the pic cross its own TV shows, magazine, websites and live events.

“The Flintstones” becomes the second animated co-production between the companies after they announced an animated “Scooby-Doo” film that will feature WWE’s stars in a new mystery when it’s released in March, just before “WrestleMania 30.”

Deal to co-produce a “Flintstones” film also extends an ongoing joke involving John Cena over the last several years.

Given Cena’s decision to build a brand around wearing brightly colored T-shirts and hats, he was called “fruity pebbles” as an insult during a feud with Dwayne “The Rock” Johnson.

But WWE embraced the term and brokered an endorsement deal with Post Cereals that put Cena on boxes of Fruity Pebbles and Cocoa Pebbles — even replacing Fred Flintstone — to promote “WrestleMania” and other pay-per-views over the last two years. Cena also has been shown backstage eating bowls of Fruity Pebbles during shows as part of the promo.