On Sat, Dec 6, 2008 at 9:27 AM, chen teaman 54teaman@gmail.com wrote:
what`s the return value of the funaction node_get_types('type', $node)? an object ,array or string?
According to the API documentation, it returns either an array or a string, but with the 'type' parameter specified for $op as you have, then it'd be a string. See http://api.drupal.org/api/function/node_get_types for more information. The API site is a great reference for this kind of thing.
Regards, Dan