Thread:Extension talk:FlaggedRevs/Flagging edits only by users with certain qualities?

Is there a way flag edits for review only if the (editing) user has certain preferences or attributes? Suppose we want only users with a certain User Preference to have their edits flagged for review, and everybody else gets autoconfirmed. Is this possible to set up with a hook in PHP, say, like this:

if ($user->getOption('my custom option') = 'some value') { $wgFlaggedRevsAutopromote = array('edits' => 1); // Would this work? } else { $wgFlaggedRevsAutopromote = false; }

Or is there another approach that could work? Thanks very much.