diff --git a/auto_nodetitle.module b/auto_nodetitle.module index c35a271..457fee2 100644 --- a/auto_nodetitle.module +++ b/auto_nodetitle.module @@ -255,3 +255,16 @@ function auto_nodetitle_node_type($op, $info) { break; } } + +/** + * Implementation of hook_features_populate_alter(). + */ +function auto_nodetitle_features_populate_alter(&$pipe, $data, $export, $module_name, $component) { + if ($component == 'node') { + foreach ($data as $type) { + $pipe['variable'][] = 'ant_' . $type; + $pipe['variable'][] = 'ant_pattern_' . $type; + $pipe['variable'][] = 'ant_php_' . $type; + } + } +}