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 Annanna on
Hi,
I want to create a 'field' in which the field should display the 'node types' available in DB.
Is there any option to display 'node types' (Content Types names), as select list options for a field.
Thanks in Advance
Comments
Hello,
Hello,
please find below code:
Now print $node_type array which display all the node type.
Thanks for your reply...
Thanks for your reply...
I am searching for something that can be done without touching the code. Some modules similar to Entity Reference.