You are here

function diff_features_pipe_node_alter in Diff 7.3

Implementation of hook_features_pipe_COMPONENT_alter().

File

./diff.module, line 498
Provides functionality to show a diff between two node revisions.

Code

function diff_features_pipe_node_alter(&$pipe, $data, $export) {
  if (!empty($data)) {
    $variables = array(
      'diff_show_preview_changes_node',
      'diff_enable_revisions_page_node',
      'diff_view_mode_preview_node',
    );
    foreach ($data as $node_type) {
      foreach ($variables as $variable_name) {
        $pipe['variable'][] = $variable_name . '_' . $node_type;
      }
    }
  }
}