[support] what will return of node_get_types('type', $node)

Dan Karran dan at karran.net
Sat Dec 6 18:44:12 UTC 2008


On Sat, Dec 6, 2008 at 9:27 AM, chen teaman <54teaman at 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

-- 
Dan Karran
dan at karran.net
www.dankarran.com


More information about the support mailing list