Mr. Pope is 100% correct on the first part so I will only address the above mentioned quote.
The NEC does not tell us where the switch has to be…but it does say the entry needs to be illuminated( grade level access entrances and exits only )…it may be a royal pain to have no switch at it but as long as it is illuminated and is switched from somewhere…it could be switched from the other side of the room if they choose…according to CODE anyway…not intelligence of the installer.:mrgreen:
Now…just so people know…it does not mean every door has to have a light beside it…it just needs to be illuminated…so a flood light that is switched could provide this light.