Problem/Motivation

When a content type is exported, automatically the fields contained in that content type are exported too.

However, there are a lot of other things that should be exported with a content type, for example, some variables, and even for the exported fields, maybe they have associated image styles.

Proposed resolution

Initially, see how features module is handling this problem.
Then, find a solution for this module.

CommentFileSizeAuthor
#4 1712332.4.dependencies.patch3 KBdagmar

Comments

dagmar’s picture

Variables are provided by the strongarm module

/**
 * Implements hook_features_pipe_alter() for node component.
 * Add node type variables on behalf of core modules.
 */
function strongarm_features_pipe_node_alter(&$pipe, $data, $export) {
  if (!empty($data)) {
    $variables = array(
      'comment',
      'comment_anonymous',
      'comment_controls',
      'comment_default_mode',
      'comment_default_order',
      'comment_default_per_page',
      'comment_form_location',
      'comment_preview',
      'comment_subject_field',
      'field_bundle_settings_node_',
      'language_content_type',
      'menu_options',
      'menu_parent',
      'node_options',
      'node_preview',
      'node_submitted',
    );
    foreach ($data as $node_type) {
      foreach ($variables as $variable_name) {
        $pipe['variable'][] = "{$variable_name}_{$node_type}";
      }
    }
  }
}
gdrupal’s picture

What dependencies we are tracking right now (core stuff, nothing of ctools here):
Content type -> Fields
Fields -> Taxonomy Vocabulary (not include terms inside the vocabulary)
Menu links -> Menu

What is not working and asking and the same time we should track this dependencies?:

Field -> image style
Field-> text format
Content type, Fields or whatever -> menu links referring admin sections for them

In a related matter:
Terms are...
content? configuration? we should provide the option to track them?

dagmar’s picture

Related to this:

Field -> text format

I'm not really sure if we should support the second one. Only is valid for text fields (that are using filtred output) and also, I'm not really sure what happens if the Text Format doens't exists. I think drupal has some fallback Text format for those cases.

dagmar’s picture

Assigned: Unassigned » dagmar
Status: Active » Needs review
StatusFileSize
new3 KB

Initial work, it's not working and tests should fail.

Even if tests doens't fail, this is not ready to be in.

Status: Needs review » Needs work

The last submitted patch, 1712332.4.dependencies.patch, failed testing.

dagmar’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.