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 rakeshrawat on
Hi All,
function module_node_info() {
$items['module_writing'] = array(
'name' => t('Test Content'),
'type' => 'test_writing',
'base' => 'node_content',
'description' => t('Writers18 Writing.'),
'has_title' => '1',
'title_label' => t('Writing Title'),
'help' => t('Please fill in all fields.'),
);
return $items;
}
The above code working and showing title in admin section but if I change to base => test_writing it stops title field in admin section to add title to custom content type.
Thanks,
Rakesh