Controllable syntheses of porous metal-organic frameworks: encapsulation of Ln(III) cations for tunable luminescence and small drug molecules for efficient delivery.