From 2c4476f43140badc8d004010a7ed2892d924ce3e Mon Sep 17 00:00:00 2001 From: Gordon Heydon Date: Sun, 28 Feb 2010 11:12:01 +1100 Subject: [PATCH 2/3] * Add auto node title variables to the features --- .../modules/auto_nodetitle/auto_nodetitle.module | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git sites/all/modules/auto_nodetitle/auto_nodetitle.module sites/all/modules/auto_nodetitle/auto_nodetitle.module index ecc812e..6352978 100644 --- sites/all/modules/auto_nodetitle/auto_nodetitle.module +++ sites/all/modules/auto_nodetitle/auto_nodetitle.module @@ -245,3 +245,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, $componet) { + if ($componet == 'node') { + foreach ($data as $type) { + $pipe['variable'][] = 'ant_' . $type; + $pipe['variable'][] = 'ant_pattern_' . $type; + $pipe['variable'][] = 'ant_php_' . $type; + } + } +} \ No newline at end of file -- 1.6.6.1