Entropy functional and the holographic attractor mechanism