function strongarm_features_pipe_node_alter in Strongarm 6.2
Same name and namespace in other branches
- 7.2 strongarm.module \strongarm_features_pipe_node_alter()
Implementation of hook_features_pipe_component_alter() for node component. Add node type variables on behalf of core modules.
File
- ./
strongarm.module, line 191
Code
function strongarm_features_pipe_node_alter(&$pipe, $data, $export) {
if (!empty($data)) {
$variables = array(
'comment',
'comment_anonymous',
'comment_controls',
'comment_default_mode',
'comment_default_order',
'comment_default_per_page',
'comment_form_location',
'comment_preview',
'comment_subject_field',
'language_content_type',
'node_options',
'upload',
);
foreach ($data as $node_type) {
foreach ($variables as $variable_name) {
$pipe['variable'][] = "{$variable_name}_{$node_type}";
}
}
}
}