Created
June 23, 2016 20:04
-
-
Save renorram/03574c017c3cfceb33891bdfa1bfe20e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($node = menu_get_object()) { | |
// Get the nid | |
$nid = $node->nid; | |
if($data->nid == $nid){ | |
return TRUE; | |
}else{ | |
return FALSE; | |
} | |
}else{ | |
return FALSE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment