[development] node_get_types() D5 and php5
Carl Mc Dade
carl_mcdade at yahoo.com
Wed Feb 14 13:41:34 UTC 2007
"The node_get_names() function no longer exists. Please use node_get_types('name', $node) instead. Similarly, the node_get_base() function no longer exists. Please use node_get_types('module', $node) instead."
Which did not apply to my situation since it was already there in the code. In the api there is no mention of a change in the functions behavior either. Previously I was getting the right behaviour by just calling the function without the parameters. I was confused by the explicit call to 'names' or 'types' when I need both in the same call. I was used to node_get_types() in 4.7 then the behaviour that has
changed with no mention of how to accomplish the same. I know someone else will want to do this and may be confused as I was, hence my post.
Carl Mc Dade
____________________________
Web Developer
----- Original Message ----
From: Robert Douglass <rob at robshouse.net>
To: development at drupal.org
Sent: Wednesday, February 14, 2007 1:32:12 PM
Subject: Re: [development] node_get_types() D5 and php5
The process of updating your modules will be easier with this reference:
http://drupal.org/node/64279
node_get_types changes are covered there as well.
-RD
--
* * * * *
Lullabot's First Ever Advanced Workshops Are Here!
Drupal API & Module Building - Advanced Drupal Themeing
April 9th-13th - Providence, RI
Early Bird Discounts Available Now
http://www.lullabot.com/training
* * * * *
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070214/d0a440e0/attachment.htm
More information about the development
mailing list