You are here

function ds_features_pipe_ds_alter in Display Suite 6

Same name and namespace in other branches
  1. 6.3 includes/ds.features.inc \ds_features_pipe_ds_alter()
  2. 6.2 includes/ds.features.inc \ds_features_pipe_ds_alter()

Implementation of hook_features_pipe_component_alter() for ds component. Add node type variables on behalf of nd.

File

includes/ds.features.inc, line 73
Features support.

Code

function ds_features_pipe_ds_alter(&$pipe, $data, $export) {
  foreach ($data as $nd_type) {
    if (substr($nd_type, 0, 3) == 'nd-') {
      $pipe['variable'][] = 'nd_display_settings_' . str_replace('nd-', '', $nd_type);
    }
  }
}