You are here

function rh_taxonomy_features_pipe_taxonomy_alter in Rabbit Hole 7.2

Implements hook_features_pipe_COMPONENT_alter().

File

modules/rh_taxonomy/rh_taxonomy.module, line 102
Main module file for Rabbit Hole taxonomy terms module.

Code

function rh_taxonomy_features_pipe_taxonomy_alter(&$pipe, $data, $export) {
  if (!empty($data)) {
    foreach ($data as $vocabulary_name) {
      foreach (rabbit_hole_get_variables('taxonomy_term', $vocabulary_name) as $rh_variable) {
        $pipe['variable'][] = $rh_variable;
      }
    }
  }
}