I'm building a plugin that will check all existing entries in a section when a single entry is flagged as featured and turn off any existing featured entries. I'm using a lightswitch field to turn on and off entries. Is there a way to use the craft()->elements->getCriteria(ElementType::Entry);
to return just the entries with the lightswitch field turned on?
Cheers