Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By OptimusPrime23 on
Hi there,
I'm using drupal 7, I would like to know whether there is an equivalent function for content_types($type_name = NULL)
. In drupal6 this function was defined in /cck/content.module, line 1377
. Can some one help me to figure this out?
Comments
If you need just their names,
Not directly equivalent, bu if you need just their names, node_type_get_names() would do.
See also node_type_get_types().