Just attempting to convert my module to 7.x and since I havnt figured out a way to programmatically add cck fields with hook_node_info, I thought I could go into admin/structure/types And add fields there, printing the field information, and then making the call to field create myself.

However, Im not seeing the node I specified in hook_node_info show up on this page. Maybe Im missing something on the changes, but I copied this code from http://drupal.org/node/224333 "Converting 6.x modules to 7.x"

function ssp_node_info() {
  return array(
    'single_slideshow' => array(
      'name' => t('Single SlideShow'),
      'base' => 'ssp',
      'description' => t('Setup single slideshows for integration with SlideshowPro'),
    )
  );
}

Comments

mr.baileys’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

The above hook_node_info implementation looks correct to me, and it might have been an issue with an earlier unstable version of D7. Are you still having this issue with a recent version or can this issue be considered resolved?

kylebrowning’s picture

This is resolved.

kylebrowning’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)