function pathauto_features_pipe_node_alter in Pathauto 7
Implements hook_features_pipe_COMPONENT_alter().
File
- ./
pathauto.module, line 1198 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_features_pipe_node_alter(&$pipe, $data, $export) {
foreach ($data as $node_type) {
$pipe['variable'][] = "pathauto_node_{$node_type}_pattern";
if (module_exists('locale')) {
$langcodes = array_keys(locale_language_list('name'));
$langcodes[] = LANGUAGE_NONE;
foreach ($langcodes as $langcode) {
$pipe['variable'][] = "pathauto_node_{$node_type}_{$langcode}_pattern";
}
}
}
}