Martin Yde - Moved language check from template.php to module, and added check for node type