I was perplexed that a CCK node type didn't show up under "Edit components->Content types:node" at the page

I think it may be because the node type had an entity field that referred to that same node type and it is getting
caught up by features.admin.inc line 105 where it does the unset

if ($options) {
// Find all default components that are not provided by this feature and
      // strip them out of the possible options.

if ($map = features_get_default_map($component)) {
        foreach (
$map as $k => $v) {
          if (isset(
$options[$k]) && (!isset($feature->name) || $v !== $feature->name)) {

since the node of type X has an entity reference also to nodes of type X it gets deleted from $options

To replicate
1. Create CCK node type
2. create Entity Reference (select list)
3. Have entity reference be of target type=Node
4. Go to /admin/structure/features/create
5. Select Edit components = "Content types: node"

Find CCK node type is not listed. Fields for that node type are not listed.


If I comment out the "unset" function then I get back the list of all CCK content types and all fields for that node type


rar’s picture

Component:Miscellaneous» Code
rar’s picture

Update: While I can now get a list of those nodes by commenting out the unset() in features.admin.inc, the export is still blank, so this would need to be fixed in (I'm guessing) features.export.inc as well.

rar’s picture

Priority:Normal» Major

Any updates on this?

This seems to be a major issue in that if there is a node entity reference in a node content type then we can't use features to export into code for tracking in an RCS. It's a huge interrupt in trying to have good change management processes.

mpotter’s picture

Issue summary:View changes
Priority:Major» Normal
Status:Active» Closed (cannot reproduce)

Closed due to inactivity. Reopen if it's still an issue in the latest version along with exact steps to reproduce it. This issue refers to CCK which was a Drupal 6 term, so not even sure if this still applies to Drupal 7.

Also, do not mark your issues as Major just to get attention.