It sounds like you’re referring to the Disney Fairies story Tinker Bell and the Lost Treasure (2009), specifically the magical that plays a central role in the plot.