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

markus_petrux’s picture

Status: Active » Closed (won't fix)

hook_node_info() is not CCK nor Fields in core. This hook is exposed by node module, so it does not apply to this queue. Please file an issue to the Drupal queue. Thanks

kylebrowning’s picture

My bad, thanks for the help