On a station in build mode activating turrets will activate all station turrets and all turrets on docked ships.
In a docked ship in activating all turrets via the entity structure tab will also reset and activate all station turrets and docked ship turrets,
This leads to lag, as quite alot of turrets could be docked to a station via ships and I would imagine that any ship being able to switch on or off all the turrets is not a good thing.