I have added blocks to my custom module. A same block should be displayed in two pages. I have to display the field $node->field_tag['und']['0']['value']; in my block.
$nid = explode("/", $_GET['q']); $node = node_load($nid);
I got the node id by this. When it goes to another url it is not loading. So how can I get the nid in the block_view theme page without using the url?