Advertisement
DrupalCustom

nodeIDSeek

Feb 20th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <? php
  2. function mycustom_node_load($node, $types) {
  3.  
  4. foreach($node as $n){
  5. $tempId = $n->nid;
  6. }
  7.    
  8.     if(is_array($node)){
  9.     $tempNode = array_values($node);
  10.             drupal_get_messages();
  11.             drupal_set_message("NODEID1>".print_r($tempId,TRUE));
  12.         }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement