<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Well, I don't want to get into a big thing about this but they both say that they return arrays. When in actual use 5.0 returns an object. At least PHP thinks so if you use gettype().<br><br>4.7) "An array consisting ('#type' => name) pairs".<br><br>5.0) "Either an array of all available node types, or a single node type, in a
variable format".<br><br>This should probably go over to the documentation list for correction. But do they have control over core comments? <br><div> </div><div> <div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br>Web Developer<br><br></font></div><div><font face="Arial" size="2"><br> </font></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Earl Miles <merlin@logrus.com><br>To: development@drupal.org<br>Sent: Wednesday, February 14, 2007 5:19:52 PM<br>Subject: Re: [development] node_get_types() D5 and php5<br><br><div>Carl Mc Dade wrote:<br>> <br>> <br>> "The |node_get_names()| function no longer exists. Please use <br>> |node_get_types('name', $node)| instead. Similarly, the <br>> |node_get_base()| function no longer exists. Please use
<br>> |node_get_types('module', $node)| instead."<br>> <br>> Which did not apply to my situation since it was already there in the <br>> code. In the api there is no mention of a change in the functions <br>> behavior either. Previously I was getting the right behaviour by just <br><br>Really? Compare:<br><br><a target="_blank" href="http://api.drupal.org/api/4.7/function/node_get_types">http://api.drupal.org/api/4.7/function/node_get_types</a><br><br>to<br><br><a target="_blank" href="http://api.drupal.org/api/head/function/node_get_types">http://api.drupal.org/api/head/function/node_get_types</a><br><br>The return value is notably different.<br><br>I realize not every single detail is covered in the updating modules page, but <br>the change IS documented in the api.<br><br></div></div><br></div></div><br>
<hr size=1>Check out <a href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta</a> - Fire up a more powerful email and get things done faster.</body></html>