Skip to content

Instantly share code, notes, and snippets.

@siffring
Created November 23, 2009 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siffring/241283 to your computer and use it in GitHub Desktop.
Save siffring/241283 to your computer and use it in GitHub Desktop.
<?php
if ( arg(0) == 'node' && is_numeric(arg(1)) ) {
$node = node_load(arg(1));
print "node:" . $node->type;
} else {
print "not a node";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment